Skip to content

Commit b714e00

Browse files
authored
Fix accidental data load (#587)
1 parent f0b8083 commit b714e00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cf_xarray/accessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def _get_axis_coord(obj: DataArray | Dataset, key: str) -> list[str]:
343343
results.update((coord,))
344344
if criterion == "units":
345345
# deal with pint-backed objects
346-
units = getattr(var.data, "units", None)
346+
units = getattr(var.variable._data, "units", None)
347347
if units in expected:
348348
results.update((coord,))
349349

0 commit comments

Comments
 (0)