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

Function _decode_attrs

xarray/backends/scipy_.py:68–71  ·  view source on GitHub ↗
(d: Mapping[K, V])

Source from the content-addressed store, hash-verified

66
67
68def _decode_attrs(d: Mapping[K, V]) -> dict[K, V]:
69 # don't decode _FillValue from bytes -> unicode, because we want to ensure
70 # that its type matches the data exactly
71 return {k: v if k == "_FillValue" else _decode_string(v) for (k, v) in d.items()}
72
73
74class ScipyArrayWrapper(BackendArray):

Callers 2

open_store_variableMethod · 0.85
get_attrsMethod · 0.85

Calls 2

_decode_stringFunction · 0.85
itemsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…