Skip to content
Snippets Groups Projects
Commit 69ba1127 authored by Matthew Andrew's avatar Matthew Andrew
Browse files

Added a fix to plot correctly on single fits Re #28077

This is a quick fix to to replace the fact that previously the fits were always updated using the zero table index. In the longer term there is a lot of tidying up to be done in the multi-input code.
parent e903e890
No related branches found
No related tags found
No related merge requests found
......@@ -368,11 +368,11 @@ void IndirectFitAnalysisTab::updateSingleFitOutput(bool error) {
if (error) {
m_fittingModel->cleanFailedSingleRun(m_fittingAlgorithm,
TableDatasetIndex{0});
m_currentTableDatasetIndex);
m_fittingAlgorithm.reset();
} else
m_fittingModel->addSingleFitOutput(m_fittingAlgorithm,
TableDatasetIndex{0});
m_currentTableDatasetIndex);
}
/**
......@@ -530,6 +530,7 @@ void IndirectFitAnalysisTab::singleFit(TableDatasetIndex dataIndex,
enableFitButtons(false);
enableOutputOptions(false);
m_fittingModel->setFittingMode(FittingMode::SIMULTANEOUS);
m_currentTableDatasetIndex = dataIndex;
runSingleFit(m_fittingModel->getSingleFit(dataIndex, spectrum));
}
}
......
......@@ -161,6 +161,7 @@ private:
std::unique_ptr<IndirectFitOutputOptionsPresenter> m_outOptionsPresenter;
IndirectFitPropertyBrowser *m_fitPropertyBrowser{nullptr};
Mantid::API::IAlgorithm_sptr m_fittingAlgorithm;
TableDatasetIndex m_currentTableDatasetIndex;
};
} // namespace IDA
......
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