MCPcopy
hub / github.com/pydata/xarray / _decode_string_data

Function _decode_string_data

xarray/testing/assertions.py:38–41  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

36
37
38def _decode_string_data(data):
39 if data.dtype.kind == "S":
40 return np.char.decode(data, "utf-8", "replace")
41 return data
42
43
44def _data_allclose_or_equiv(arr1, arr2, rtol=1e-05, atol=1e-08, decode_bytes=True):

Callers 1

_data_allclose_or_equivFunction · 0.85

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…