(self)
| 1447 | assert_array_equal(v_new, v._data[0, 0]) |
| 1448 | |
| 1449 | def test_getitem_with_mask_2d_input(self): |
| 1450 | v = Variable(("x", "y"), [[0, 1, 2], [3, 4, 5]]) |
| 1451 | assert_identical( |
| 1452 | v._getitem_with_mask(([-1, 0], [1, -1])), |
| 1453 | Variable(("x", "y"), [[np.nan, np.nan], [1, np.nan]]), |
| 1454 | ) |
| 1455 | assert_identical(v._getitem_with_mask((slice(2), [0, 1, 2])), v) |
| 1456 | |
| 1457 | def test_isel(self): |
| 1458 | v = Variable(["time", "x"], self.d) |
nothing calls this directly
no test coverage detected