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

Method _reset_cache

dask/array/core.py:1439–1451  ·  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

1437 return Array(dsk, name, self.chunks, self.dtype, self._meta)
1438
1439 def _reset_cache(self, key=None):
1440 """
1441 Reset cached properties.
1442
1443 Parameters
1444 ----------
1445 key : str, optional
1446 Remove specified key. The default removes all items.
1447 """
1448 if key is None:
1449 self.__dict__.clear()
1450 else:
1451 self.__dict__.pop(key, None)
1452
1453 @cached_property
1454 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