MCPcopy Create free account
hub / github.com/dask/dask / xarray_sizeof_da

Function xarray_sizeof_da

dask/sizeof.py:281–282  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

279 @sizeof.register(xr.DataArray)
280 @sizeof.register(xr.Variable)
281 def xarray_sizeof_da(obj):
282 return sys.getsizeof(obj) + sizeof(obj.data)
283
284 @sizeof.register(xr.Dataset)
285 def xarray_sizeof_ds(obj):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected