djdt / spcal

spICP-MS calculator.
https://spcal.readthedocs.io
GNU General Public License v3.0
7 stars 1 forks source link

Fix LOD in histogram for LODs with NaN values #19

Closed djdt closed 1 week ago

djdt commented 1 week ago

Uses nanmean instead of mean to compute mean for LODs from windowed thresholds. This fixes crash if any values are NaN (as with blanked data). Also renames "LOD" to "LOD (mean)" for clarity in cases of multiple LOD values (windowed). LODs are also now not calculated for NaN regions.

Closes #18.