Skip to content

Commit

Permalink
comment out divide by zero assertation
Browse files Browse the repository at this point in the history
  • Loading branch information
waltsims committed Dec 19, 2023
1 parent 1bd6547 commit cd92948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kwave/utils/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def cosine_series(n: int, N: int, coeffs: List[float]) -> np.ndarray:
# TODO: what should this behaviour be if N is a list of ints? make windows of multiple lengths?
n = np.arange(0, N)

assert np.all(N - 1) != 0, 'N must be greater than 1'
# assert np.all(N - 1) != 0, 'N must be greater than 1'

if type_ == 'Bartlett':
win = (2 / (N - 1) * ((N - 1) / 2 - abs(n - (N - 1) / 2))).T
Expand Down

0 comments on commit cd92948

Please sign in to comment.