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
dd2c8946
Commit
dd2c8946
authored
Sep 09, 2021
by
Robert Applin
Browse files
Refs #0. Fix index out of range error in model analysis.
parent
5a838aa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/Muon/GUI/Common/fitting_widgets/basic_fitting/basic_fitting_model.py
View file @
dd2c8946
...
...
@@ -289,7 +289,7 @@ class BasicFittingModel:
"""Clears the undo fit functions and other data for the currently selected index."""
current_dataset_index
=
self
.
fitting_context
.
current_dataset_index
for
i
,
dataset_index
in
reversed
(
list
(
enumerate
(
self
.
fitting_context
.
dataset_indices_for_undo
))):
if
dataset_index
==
current_dataset_index
:
if
dataset_index
==
current_dataset_index
and
i
<
len
(
self
.
fitting_context
.
active_fit_history
)
:
del
self
.
fitting_context
.
active_fit_history
[
i
]
del
self
.
fitting_context
.
dataset_indices_for_undo
[
i
]
del
self
.
fitting_context
.
single_fit_functions_for_undo
[
i
]
...
...
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