Skip to content

Commit

Permalink
Check output contains only valid numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jurihock committed Mar 31, 2024
1 parent 58bcabf commit 97a61cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/remucs/tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,7 @@ def analyze(src: Path, opts: RemucsOptions) -> Tuple[NDArray, NDArray]:
estimates = estimates[latency:latency+oldsize]
weights = weights[latency:latency+oldsize]

assert numpy.all(numpy.isfinite(estimates))
assert numpy.all(numpy.isfinite(weights))

return estimates, weights

0 comments on commit 97a61cc

Please sign in to comment.