We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bdbb33 commit 3de91beCopy full SHA for 3de91be
src/emsarray/operations/cache.py
@@ -63,7 +63,8 @@ def hash_int(hash: "hashlib._Hash", value: int) -> None:
63
attributes: int
64
Expects an int that can be represented in a numpy int32.
65
"""
66
- hash.update(numpy.int32(value).tobytes())
+ with numpy.errstate(over='raise'):
67
+ hash.update(numpy.int32(value).tobytes())
68
69
70
def make_cache_key(dataset: xarray.Dataset, hash: "hashlib._Hash | None" = None) -> str:
0 commit comments