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

Function xarray_sizeof_indexes

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

Source from the content-addressed store, hash-verified

290
291 @sizeof.register(xr.core.indexes.Indexes)
292 def xarray_sizeof_indexes(obj):
293 return (
294 sys.getsizeof(obj)
295 + sizeof(obj._index_type)
296 + sizeof(obj._indexes)
297 + sizeof(obj._variables)
298 + sizeof(obj._dims)
299 )
300
301 @sizeof.register(xr.core.indexes.PandasIndex)
302 def xarray_sizeof_pd_index(obj):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected