Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hashes are not unique to domain configuration #37

Open
Castronova opened this issue Dec 22, 2021 · 0 comments
Open

Hashes are not unique to domain configuration #37

Castronova opened this issue Dec 22, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Castronova
Copy link
Contributor

"Unique" hashes are created for each job using HUC ids or bounding box information, but these do not differentiate between model configurations. For example the hash for the same bbox using NWM v1 and NWM v2 will produce the same hash. This will cause the wrong data to be returned to users if the area has already been processed.

# calculate unique hash based on bbox
hasher = hashlib.sha1()
hasher.update(str([llon, llat, ulon, ulat]).encode('utf-8'))
uid = hasher.hexdigest()
@Castronova Castronova added the bug Something isn't working label Dec 22, 2021
@Castronova Castronova self-assigned this Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant