Skip to content

Keep a silent estimate silent when scaling to the mixture - #720

Merged
mpariente merged 1 commit into
asteroid-team:masterfrom
SashaMIT:codered-silent-norm
Sep 29, 2026
Merged

mpariente merged 1 commit into
asteroid-team:masterfrom
SashaMIT:codered-silent-norm

Conversation

@SashaMIT

Copy link
Copy Markdown
Contributor

Summary

normalize_estimates of a silent source and a mixture peaking at 0.5 returned NaN. The source was scaled by the mixture peak divided by its own peak, and that peak is 0. It now stays 0. A source peaking at 1 still scales to [0.5, -0.25].

Test plan

  • tests/dsp/normalization_test.py
  • Red on tip: the silent source came back as NaN
  • Green: that source stays 0, and the other source still matches the mixture peak

A source of all zeros was divided by its peak and came back as NaN.
@mpariente

Copy link
Copy Markdown
Collaborator

Thanks a lot !

@mpariente
mpariente merged commit c15708a into asteroid-team:master Sep 29, 2026
3 of 4 checks passed
@SashaMIT

Copy link
Copy Markdown
Contributor Author

Thanks a lot, glad this one landed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants