(self)
| 646 | self.assertLazyAndAllClose(np.sin(u), np.sin(v)) |
| 647 | |
| 648 | def test_where_dispatching(self): |
| 649 | a = np.arange(10) |
| 650 | b = a > 3 |
| 651 | x = da.from_array(a, 5) |
| 652 | y = da.from_array(b, 5) |
| 653 | expected = DataArray(a).where(b) |
| 654 | self.assertLazyAndEqual(expected, DataArray(a).where(y)) |
| 655 | self.assertLazyAndEqual(expected, DataArray(x).where(b)) |
| 656 | self.assertLazyAndEqual(expected, DataArray(x).where(y)) |
| 657 | |
| 658 | def test_simultaneous_compute(self): |
| 659 | ds = Dataset({"foo": ("x", range(5)), "bar": ("x", range(5))}).chunk() |
nothing calls this directly
no test coverage detected