>>> import dask.array as da >>> da.ones((10, 10), chunks=(5, 5), dtype='i4') dask.array<..., shape=(10, 10), dtype=int32, chunksize=(5, 5), chunktype=numpy.ndarray>
(self)
| 1607 | return NotImplemented |
| 1608 | |
| 1609 | def __repr__(self): |
| 1610 | """ |
| 1611 | |
| 1612 | >>> import dask.array as da |
| 1613 | >>> da.ones((10, 10), chunks=(5, 5), dtype='i4') |
| 1614 | dask.array<..., shape=(10, 10), dtype=int32, chunksize=(5, 5), chunktype=numpy.ndarray> |
| 1615 | """ |
| 1616 | name = self.name.rsplit("-", 1)[0] |
| 1617 | return ( |
| 1618 | "dask.array<{}, shape={}, dtype={}, chunksize={}, chunktype={}.{}>".format( |
| 1619 | name, |
| 1620 | self.shape, |
| 1621 | self.dtype, |
| 1622 | self.chunksize, |
| 1623 | type(self._meta).__module__.split(".")[0], |
| 1624 | type(self._meta).__name__, |
| 1625 | ) |
| 1626 | ) |
| 1627 | |
| 1628 | def _repr_html_(self): |
| 1629 | if ARRAY_TEMPLATE is None: |