[docs]classWrapperArraySeed:""" Wrapper for a DelayedArray seed, which forwards all of the required operations to the seed object. This is expected to be used as a base for concrete subclasses that attach more provenance-tracking information - see :py:class:`~dolomite_base.ReloadedArray.ReloadedArray` for an example. """def__init__(self,seed):""" Args: seed: The underlying seed instance to be wrapped. """self._seed=seed@propertydefseed(self):""" Returns: The underlying seed instance. """returnself._seed@propertydefshape(self)->Tuple[int,...]:""" Returns: The shape of the seed. """returnself._seed.shape@propertydefdtype(self)->numpy.dtype:""" Returns: The type of the seed. """returnself._seed.dtype
[docs]@delayedarray.is_sparse.registerdefis_sparse_WrapperArraySeed(x:WrapperArraySeed)->bool:"""See :py:func:`~delayedarray.is_sparse.is_sparse` for details."""returndelayedarray.is_sparse(x._seed)
[docs]@delayedarray.is_masked.registerdefis_masked_WrapperArraySeed(x:WrapperArraySeed)->bool:"""See :py:func:`~delayedarray.is_masked.is_masked` for details."""returndelayedarray.is_masked(x._seed)
[docs]@delayedarray.chunk_grid.registerdefchunk_grid_WrapperArraySeed(x:WrapperArraySeed)->Tuple[int,...]:"""See :py:func:`~delayedarray.chunk_grid.chunk_grid` for details."""returndelayedarray.chunk_grid(x._seed)
[docs]@delayedarray.extract_dense_array.registerdefextract_dense_array_WrapperArraySeed(x:WrapperArraySeed,subset:Tuple[Sequence[int],...])->numpy.ndarray:"""See :py:func:`~delayedarray.extract_dense_array.extract_dense_array` for details."""returndelayedarray.extract_dense_array(x._seed,subset)
[docs]@delayedarray.extract_sparse_array.registerdefextract_sparse_array_WrapperArraySeed(x:WrapperArraySeed,subset:Tuple[Sequence[int],...])->delayedarray.SparseNdarray:"""See :py:func:`~delayedarray.extract_sparse_array.extract_sparse_array` for details."""returndelayedarray.extract_sparse_array(x._seed,subset)
[docs]@delayedarray.create_dask_array.registerdefcreate_dask_array_WrapperArraySeed(x:WrapperArraySeed):"""See :py:func:`~delayedarray.create_dask_array.create_dask_array` for details."""returndelayedarray.create_dask_array(x._seed)