File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -253,14 +253,12 @@ def test_concat_loads_coords(self):
253
253
# Test that concat() computes dask-based, non-index
254
254
# coordinates exactly once and loads them in the output,
255
255
# while leaving the input unaltered.
256
- y = build_dask_array ()
256
+ y = build_dask_array ('y' )
257
257
ds1 = Dataset (coords = {'x' : [1 ], 'y' : ('x' , y )})
258
258
ds2 = Dataset (coords = {'x' : [1 ], 'y' : ('x' , [2.0 ])})
259
259
assert kernel_call_count == 0
260
260
ds3 = xr .concat ([ds1 , ds2 ], dim = 'z' )
261
- # BUG fixed in #1532 where getattr('to_dataset')
262
- # will cause non-index coords to be computed.
263
- assert kernel_call_count == 2
261
+ assert kernel_call_count == 1
264
262
assert ds1 ['y' ].data is y
265
263
assert isinstance (ds3 ['y' ].data , np .ndarray )
266
264
assert ds3 ['y' ].values .tolist () == [[1.0 ], [2.0 ]]
You can’t perform that action at this time.
0 commit comments