Skip to content
Snippets Groups Projects
Commit 5a8e3fb9 authored by Sam Jenkins's avatar Sam Jenkins
Browse files

Re #23214 replace zero and lower with 1

parent 70ba352e
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,8 @@ def _batched_run_focusing(instrument, perform_vanadium_norm, run_number_string,
def _divide_one_spectrum_by_spline(spectrum, spline):
rebinned_spline = mantid.RebinToWorkspace(WorkspaceToRebin=spline, WorkspaceToMatch=spectrum, StoreInADS=False)
rebinned_spline = mantid.ReplaceSpecialValues(rebinned_spline,SmallNumberThreshold=0, SmallNumberValue=1,
StoreInADS=False)
divided = mantid.Divide(LHSWorkspace=spectrum, RHSWorkspace=rebinned_spline, OutputWorkspace=spectrum)
return divided
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment