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

Method __len__

dask/blockwise.py:646–652  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

644 return iter(self._dict)
645
646 def __len__(self) -> int:
647 # same method as `get_output_keys`, without manifesting the keys themselves
648 return (
649 len(self.output_blocks)
650 if self.output_blocks
651 else prod(self.dims[i] for i in self.output_indices)
652 )
653
654 def is_materialized(self):
655 return hasattr(self, "_cached_dict")

Callers

nothing calls this directly

Calls 1

prodFunction · 0.85

Tested by

no test coverage detected