Commit 5fc91fbf authored by Henri Payno's avatar Henri Payno
Browse files

add some doc for noise nan usage

parent 7c79746f
Pipeline #81717 passed with stages
in 5 minutes and 39 seconds
......@@ -87,6 +87,7 @@ def process_noise_savgol(
spectrum.raw_noise_savgol = numpy.mean(noise[mask])
spectrum.norm_noise_savgol = spectrum.raw_noise_savgol / spectrum.edge_step
else:
# Uses nan's instead of raising an exception. Otherwise we have much more failing workflows online (either E0 is wrong or the scan has not progressed past Emin, which is after the edge so the plots are fine).
spectrum.raw_noise_savgol = numpy.nan
spectrum.norm_noise_savgol = numpy.nan
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment