()
| 88 | |
| 89 | # TODO(shoyer): parameterize when we have more coders |
| 90 | def test_coder_roundtrip() -> None: |
| 91 | original = xr.Variable(("x",), [0.0, np.nan, 1.0]) |
| 92 | coder = variables.CFMaskCoder() |
| 93 | roundtripped = coder.decode(coder.encode(original)) |
| 94 | assert_identical(original, roundtripped) |
| 95 | |
| 96 | |
| 97 | @pytest.mark.parametrize("dtype", ["u1", "u2", "i1", "i2", "f2", "f4"]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…