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 a0fb41f commit 3e5037fCopy full SHA for 3e5037f
src/zarr/core/metadata/v3.py
@@ -492,7 +492,7 @@ def parse_fill_value(
492
if not np.isclose(fill_value, casted_value, equal_nan=True):
493
raise ValueError(f"fill value {fill_value!r} is not valid for dtype {data_type}")
494
elif np_dtype.kind == "c":
495
- # confusingly np.isclose(np.inf, np.inf + 0j) is False, so compare real and imag parts
+ # confusingly np.isclose(np.inf, np.inf + 0j) is False on numpy<2, so compare real and imag parts
496
# explicitly.
497
if not (
498
np.isclose(np.real(fill_value), np.real(casted_value), equal_nan=True)
0 commit comments