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

Function xarray_sizeof_ds

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

Source from the content-addressed store, hash-verified

283
284 @sizeof.register(xr.Dataset)
285 def xarray_sizeof_ds(obj):
286 return sys.getsizeof(obj) + sizeof(obj.variables)
287
288 if XARRAY_GE_2024_02:
289 xarray_sizeof_da = sizeof.register(xr.NamedArray)(xarray_sizeof_da)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected