(self)
| 600 | ) |
| 601 | |
| 602 | def __repr__(self): |
| 603 | repr_lines = repr(self.as_string_array()).splitlines() |
| 604 | repr_lines[0] = repr_lines[0].replace('array(', 'LabelArray(', 1) |
| 605 | repr_lines[-1] = repr_lines[-1].rsplit(',', 1)[0] + ')' |
| 606 | # The extra spaces here account for the difference in length between |
| 607 | # 'array(' and 'LabelArray('. |
| 608 | return '\n '.join(repr_lines) |
| 609 | |
| 610 | def empty_like(self, shape): |
| 611 | """ |
nothing calls this directly
no test coverage detected