Skip to content

fix: handle spectra 2D without a noise distribution - #4420

Open
jobo322 wants to merge 1 commit into
mainfrom
avoid_magic_number_when_spectrum_has_not_noise_distribution
Open

jobo322 wants to merge 1 commit into
mainfrom
avoid_magic_number_when_spectrum_has_not_noise_distribution

Conversation

@jobo322

@jobo322 jobo322 commented Oct 28, 2026

Copy link
Copy Markdown
Member

When a spectra2D without noise distribution is loaded, the estimation of the noise would returnundefined and the contour plot mechanism of nmrium would ignore the FDR (false discovery rate) because there is not a threshold (noise level).

It would fix the bug at the moment to load NUS sample or simulated 2D spectra without a noise distribution added. Where the median or MAD would be equal to zero.

This branch has not been deployed

No deployments
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.

1 participant