()
| 75 | |
| 76 | @requires_dask |
| 77 | def test_CFMaskCoder_decode_dask() -> None: |
| 78 | original = xr.Variable(("x",), [0, -1, 1], {"_FillValue": -1}).chunk() |
| 79 | expected = xr.Variable(("x",), [0, np.nan, 1]) |
| 80 | coder = variables.CFMaskCoder() |
| 81 | encoded = coder.decode(original) |
| 82 | assert isinstance(encoded.data, da.Array) |
| 83 | assert_identical(expected, encoded) |
| 84 | |
| 85 | |
| 86 | # TODO(shoyer): port other fill-value tests |
nothing calls this directly
no test coverage detected
searching dependent graphs…