Skip to content

Commit

Permalink
Use more expressive repr for XDFStream
Browse files Browse the repository at this point in the history
  • Loading branch information
agricolab committed Sep 24, 2020
1 parent d1dab2a commit dac04ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions liesl/files/xdf/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def time_stamps(self) -> ndarray:
"get the time_stamps for each sample as ndarray"
return self._stream["time_stamps"]

def __repr__(self) -> str:
return f"XDFStream(name={self.name}, type={self.type}, hostname={self.hostname}, created_at={self.created_at}, duration={self.time_stamps[0]-self.time_stamps[1]}, chan_count={self.channel_count}, )"


# -----------------------------------------------------------------------------
def XDFFile(filename: Union[Path, str], verbose=False) -> Dict[str, XDFStream]:
Expand Down

0 comments on commit dac04ed

Please sign in to comment.