Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
99
def
array_strip_units(array):
100
try
:
101
return
array.magnitude
102
except
AttributeError:
103
return
array
104
105
106
def
array_attach_units(data, unit):
Callers
2
strip_units
Function · 0.85
test_content_manipulation
Method · 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…