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 8626690 commit f8127fcCopy full SHA for f8127fc
xarray/tests/test_dask.py
@@ -1701,3 +1701,10 @@ def test_graph_manipulation():
1701
# names if we were to use HighLevelGraph.cull() instead of
1702
# HighLevelGraph.cull_layers() in Dataset.__dask_postpersist__().
1703
assert_equal(ds2.d1 + ds2.d2, ds.d1 + ds.d2)
1704
+
1705
1706
+def test_new_index_var_computes_once():
1707
+ # regression test for GH1533
1708
+ data = dask.array.from_array(np.array([100, 200]))
1709
+ with raise_if_dask_computes(max_computes=1):
1710
+ Dataset(coords={"z": ("z", data)})
0 commit comments