MCPcopy
hub / github.com/pydata/xarray / test_setitem_dask_array

Method test_setitem_dask_array

xarray/tests/test_dask.py:132–137  ·  view source on GitHub ↗
(self, expected_data, index)

Source from the content-addressed store, hash-verified

130 ],
131 )
132 def test_setitem_dask_array(self, expected_data, index):
133 arr = Variable(("x"), da.array([1, 2, 3, 4]))
134 expected = Variable(("x"), expected_data)
135 with raise_if_dask_computes():
136 arr[index] = 99
137 assert_identical(arr, expected)
138
139 def test_squeeze(self):
140 u = self.eager_var

Callers

nothing calls this directly

Calls 3

VariableClass · 0.90
raise_if_dask_computesFunction · 0.90
assert_identicalFunction · 0.90

Tested by

no test coverage detected