Skip to content

Commit 773de45

Browse files
valeriupredoipp-mo
andauthored
Update lib/ncdata/xarray.py
Co-authored-by: Patrick Peglar <patrick.peglar@metoffice.gov.uk>
1 parent e2f607f commit 773de45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ncdata/xarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def store(
111111
# Zarr2 metadata
112112
if "axis" not in var.attrs:
113113
std_axes = ["latitude", "longitude", "time"]
114-
if not list(set(var.attrs.values()) & set(std_axes)):
114+
if not [s for s in std_axes if s in str(var.attrs.values())]:
115115
_raise_warning(var)
116116
# Zarr3 metadata
117117
else:

0 commit comments

Comments
 (0)