Skip to content

Commit 3b85b89

Browse files
Added comment to describe xarray bug mitigation.
1 parent e4f4218 commit 3b85b89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/emsarray/conventions/_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1973,6 +1973,8 @@ def hash_geometry(self, hash: "hashlib._Hash") -> None:
19731973
# Include the dtype of the data array.
19741974
# A float array and an int array mean very different things,
19751975
# but could have identical byte patterns.
1976+
# Checking for encoding dtype and falling back to values.dtype due to
1977+
# xarray multifile dataset bug - https://github.com/pydata/xarray/issues/2436
19761978
hash_string(hash, data_array.encoding.get('dtype', data_array.values.dtype).name)
19771979

19781980
# Include the size and shape of the data.

0 commit comments

Comments
 (0)