Skip to content
Snippets Groups Projects
Commit 528feda8 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Improve representation of Branch and EventReader

parent 70d3cf6a
No related branches found
No related tags found
No related merge requests found
Pipeline #16366 passed with warnings
......@@ -299,7 +299,11 @@ class EventReader:
def __repr__(self):
length = len(self)
actual_length = self.__actual_len__()
return f"{self.__class__.__name__} ({length}{'/' + str(actual_length) if length < actual_length else ''} events)"
return (
f"<{self.__class__.__name__} "
f"[{length}{'/' + str(actual_length) if length < actual_length else ''}]"
f" path='{self.event_path}'>"
)
@property
def uuid(self):
......@@ -387,7 +391,11 @@ class Branch:
def __repr__(self):
length = len(self)
actual_length = self.__actual_len__()
return f"{self.__class__.__name__} ({length}{'/' + str(actual_length) if length < actual_length else ''} {self._branch.name})"
return (
f"<{self.__class__.__name__} "
f"[{length}{'/' + str(actual_length) if length < actual_length else ''}]"
f" path='{self._branch.name}'>"
)
@property
def ndim(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment