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 0f70805 commit 6bbcc8aCopy full SHA for 6bbcc8a
xarray/core/dataarray.py
@@ -208,11 +208,17 @@ def _check_data_shape(
208
return data
209
else:
210
data_shape = tuple(
211
- as_variable(coords[k], k).size if k in coords.keys() else 1
+ (
212
+ as_variable(coords[k], k, auto_convert=False).size
213
+ if k in coords.keys()
214
+ else 1
215
+ )
216
for k in dims
217
)
218
- data_shape = tuple(as_variable(coord, "foo").size for coord in coords)
219
+ data_shape = tuple(
220
+ as_variable(coord, "foo", auto_convert=False).size for coord in coords
221
222
data = np.full(data_shape, data)
223
224
0 commit comments