Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
3e854488
Commit
3e854488
authored
Sep 09, 2021
by
Robert Applin
Browse files
Refs #0. Use global with error in results table.
parent
dd2c8946
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/Muon/GUI/Common/contexts/fitting_contexts/fitting_context.py
View file @
3e854488
...
...
@@ -71,6 +71,12 @@ def _create_unique_param_lookup(parameter_workspace, global_parameters):
for
row
in
default_table
:
name
=
row
[
NAME_COL
]
exists
,
is_global
=
is_in
(
unique_params
,
name
)
# If the parameter is global, and its error is zero, skip it so that the global with the error is found instead.
is_error_zero
=
row
[
ERRORS_COL
]
==
0.0
if
is_global
and
is_error_zero
:
continue
if
not
exists
:
parameter
=
Parameter
(
name
,
row
[
VALUE_COL
],
row
[
ERRORS_COL
],
is_global
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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