Skip to content

Commit

Permalink
fix: repr did not contain path
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Mar 24, 2022
1 parent 9b54cea commit b16958d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qpformat/file_formats/series_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def __init__(self, path, meta_data=None, holo_kw=None, as_type="float32"):
self.format = self.__class__.__name__

def __repr__(self):
rep = f"QPFormat '{self.format}'" \
+ f", {len(self)} image(s)" \
+ f"at {hex(id(self))}" \
+ "\nfile: {self.path}"
rep = f"<qpformat {self.format} '{self.path}'" \
+ f", {len(self)} image" \
+ ("s " if len(self) > 1 else " ") \
+ f"at {hex(id(self))}>"

meta = []
if "wavelength" in self.meta_data:
Expand Down

0 comments on commit b16958d

Please sign in to comment.