MCPcopy Index your code
hub / github.com/pydata/xarray / test_CFMask_coder_decode

Function test_CFMask_coder_decode

properties/test_encode_decode.py:36–41  ·  view source on GitHub ↗
(var)

Source from the content-addressed store, hash-verified

34@pytest.mark.slow
35@given(var=variables(dtype=npst.floating_dtypes()))
36def test_CFMask_coder_decode(var) -> None:
37 var[0] = -99
38 var.attrs["_FillValue"] = -99
39 coder = xr.coding.variables.CFMaskCoder()
40 decoded = coder.decode(var)
41 assert np.isnan(decoded[0])
42
43
44@pytest.mark.slow

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…