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