Skip to content

Hashes are not unique to domain configuration #37

Description

@Castronova

"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()

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions