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

Function array_strip_units

xarray/tests/test_units.py:99–103  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

97
98
99def array_strip_units(array):
100 try:
101 return array.magnitude
102 except AttributeError:
103 return array
104
105
106def array_attach_units(data, unit):

Callers 2

strip_unitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…