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 ebf9fed commit f6fed86Copy full SHA for f6fed86
xarray/core/variable.py
@@ -269,8 +269,7 @@ def as_compatible_data(
269
270
Finally, wrap it up with an adapter if necessary.
271
"""
272
- ndim = getattr(data, "ndim", None)
273
- if fastpath and ndim is not None:
+ if fastpath and getattr(data, "ndim", None) is not None:
274
return cast("T_DuckArray", data)
275
276
from xarray.core.dataarray import DataArray
0 commit comments