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

Function test_CharacterArrayCoder_char_dim_name

xarray/tests/test_coding_strings.py:157–163  ·  view source on GitHub ↗
(original, expected_char_dim_name)

Source from the content-addressed store, hash-verified

155 ],
156)
157def test_CharacterArrayCoder_char_dim_name(original, expected_char_dim_name) -> None:
158 coder = strings.CharacterArrayCoder()
159 encoded = coder.encode(original)
160 roundtripped = coder.decode(encoded)
161 assert encoded.dims[-1] == expected_char_dim_name
162 assert roundtripped.encoding["char_dim_name"] == expected_char_dim_name
163 assert roundtripped.dims[-1] == original.dims[-1]
164
165
166@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

encodeMethod · 0.95
decodeMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…