Skip to content

Commit

Permalink
Merge 6889118 into 55d82b0
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Mar 3, 2024
2 parents 55d82b0 + 6889118 commit 07fcd02
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion strax/storage/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,13 @@ def __repr__(self):
# List the relevant attributes ('path' is actually for the
# strax.DataDirectory but it makes more sense to put it here).
attributes = ("readonly", "path", "exclude", "take_only")
representation = f"{self.__class__.__module__}.{self.__class__.__name__}"
representation = ""
for attr in attributes:
if hasattr(self, attr) and getattr(self, attr):
representation += f", {attr}: {getattr(self, attr)}"
if representation:
representation = " (" + representation[2:] + ")"
representation = f"{self.__class__.__module__}.{self.__class__.__name__}" + representation
return representation

def loader(
Expand Down

0 comments on commit 07fcd02

Please sign in to comment.