Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
365c3fba
Commit
365c3fba
authored
Sep 08, 2021
by
Richard Waite
Browse files
Don't replace workspace when setting uncertainty to zero
parent
2722a430
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/Engineering/gui/engineering_diffraction/tabs/fitting/data_handling/data_model.py
View file @
365c3fba
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment