Skip to content

Commit 97a61cc

Browse files
committedMar 31, 2024·
Check output contains only valid numbers
1 parent 58bcabf commit 97a61cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/remucs/tuning.py

+3
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,7 @@ def analyze(src: Path, opts: RemucsOptions) -> Tuple[NDArray, NDArray]:
113113
estimates = estimates[latency:latency+oldsize]
114114
weights = weights[latency:latency+oldsize]
115115

116+
assert numpy.all(numpy.isfinite(estimates))
117+
assert numpy.all(numpy.isfinite(weights))
118+
116119
return estimates, weights

0 commit comments

Comments
 (0)