Skip to content

Commit

Permalink
repr
Browse files Browse the repository at this point in the history
  • Loading branch information
gautam-404 committed Oct 31, 2023
1 parent e84858d commit cbb0a01
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PreWhitener/PreWhitener.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,3 +465,8 @@ def remove_based_on_local_snr(self, df: pd.DataFrame, resolution: float = 3) ->
to_drop.append(i)
return df.drop(index=to_drop)

def __repr__(self):
if self.name is not None:
return f"PreWhitener(name='{self.name}')"
else:
return f'PreWhitener(lc=({self.t}, {self.data}))'

0 comments on commit cbb0a01

Please sign in to comment.