Skip to content

Commit ecbe054

Browse files
committed
Fix accidental data load
1 parent b449735 commit ecbe054

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
@@ -399,7 +399,7 @@ def _get_axis_coord(obj: DataArray | Dataset, key: str) -> list[str]:
399399
results.update((coord,))
400400
if criterion == "units":
401401
# deal with pint-backed objects
402-
units = getattr(var.data, "units", None)
402+
units = getattr(var._data, "units", None)
403403
if units in expected:
404404
results.update((coord,))
405405

0 commit comments

Comments
 (0)