Commit 365c3fba authored by Richard Waite's avatar Richard Waite
Browse files

Don't replace workspace when setting uncertainty to zero

parent 2722a430
......@@ -327,7 +327,7 @@ class FittingDataModel(object):
except (ValueError, RuntimeError) as e:
# ValueError when Niter not positive integer, RuntimeError when Window too small
logger.error("Error on arguments supplied to EnggEstimateFocusedBackground: " + str(e))
ws_bg = SetUncertainties(InputWorkspace=ws_name, OutputWorkspace=ws_name) # copy data and zero errors
ws_bg = SetUncertainties(InputWorkspace=ws_name) # copy data and zero errors
ws_bg = Minus(LHSWorkspace=ws_bg, RHSWorkspace=ws_bg) # workspace of zeros with same num spectra
return ws_bg
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