Skip to content

Commit

Permalink
Modify array repr()
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed Aug 12, 2023
1 parent ef77e59 commit b4e7bec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sdr/_filter/_fir.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ def __repr__(self) -> str:
fir = sdr.FIR(h)
fir
"""
h_str = np.array2string(self.taps, max_line_width=1e6, separator=", ", suppress_small=True)
return f"sdr.{type(self).__name__}({h_str}, streaming={self.streaming})"
return f"sdr.{type(self).__name__}({self.taps.tolist()}, streaming={self.streaming})"

def __str__(self) -> str:
"""
Expand All @@ -79,8 +78,9 @@ def __str__(self) -> str:
print(fir)
"""
string = f"sdr.{type(self).__name__}:"
string += f"\n taps: {self.taps.shape} shape"
string += f"\n order: {self.order}"
string += f"\n taps: {self.taps.shape} shape"
string += f"\n {self.taps.tolist()}"
string += f"\n delay: {self.delay}"
string += f"\n streaming: {self.streaming}"
return string
Expand Down

0 comments on commit b4e7bec

Please sign in to comment.