Skip to content

Commit 3e5037f

Browse files
authored
Update src/zarr/core/metadata/v3.py
1 parent a0fb41f commit 3e5037f

File tree

1 file changed

+1
-1
lines changed
  • src/zarr/core/metadata

1 file changed

+1
-1
lines changed

src/zarr/core/metadata/v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def parse_fill_value(
492492
if not np.isclose(fill_value, casted_value, equal_nan=True):
493493
raise ValueError(f"fill value {fill_value!r} is not valid for dtype {data_type}")
494494
elif np_dtype.kind == "c":
495-
# confusingly np.isclose(np.inf, np.inf + 0j) is False, so compare real and imag parts
495+
# confusingly np.isclose(np.inf, np.inf + 0j) is False on numpy<2, so compare real and imag parts
496496
# explicitly.
497497
if not (
498498
np.isclose(np.real(fill_value), np.real(casted_value), equal_nan=True)

0 commit comments

Comments
 (0)