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

Method _reset_cache

dask/array/core.py:1434–1446  ·  view source on GitHub ↗

Reset cached properties. Parameters ---------- key : str, optional Remove specified key. The default removes all items.

(self, key=None)

Source from the content-addressed store, hash-verified

1432 return Array(dsk, name, self.chunks, self.dtype, self._meta)
1433
1434 def _reset_cache(self, key=None):
1435 """
1436 Reset cached properties.
1437
1438 Parameters
1439 ----------
1440 key : str, optional
1441 Remove specified key. The default removes all items.
1442 """
1443 if key is None:
1444 self.__dict__.clear()
1445 else:
1446 self.__dict__.pop(key, None)
1447
1448 @cached_property
1449 def _key_array(self):

Callers 2

_chunksMethod · 0.95
_nameMethod · 0.95

Calls 2

popMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected