Skip to content
Snippets Groups Projects
Commit 822b2597 authored by Karl Palmen's avatar Karl Palmen
Browse files

Merge pull request #13896 from mantidproject/13769_Indirect_Energy_Transfer_validation

ISIS Energy Transfer check for background start/end in Plot Time validation
parents 4e24cdfc 3b9b1685
No related branches found
No related tags found
No related merge requests found
...@@ -447,6 +447,15 @@ void ISISEnergyTransfer::plotRaw() { ...@@ -447,6 +447,15 @@ void ISISEnergyTransfer::plotRaw() {
return; return;
} }
if (m_uiForm.ckBackgroundRemoval->isChecked() == true) {
int startBack = m_uiForm.spBackgroundStart->value();
int endBack = m_uiForm.spBackgroundEnd->value();
if (startBack > endBack) {
emit showMessageBox("Background Start must be less than Background End");
return;
}
}
QString rawFile = m_uiForm.dsRunFiles->getFirstFilename(); QString rawFile = m_uiForm.dsRunFiles->getFirstFilename();
auto pos = rawFile.lastIndexOf("."); auto pos = rawFile.lastIndexOf(".");
auto extension = rawFile.right(rawFile.length() - pos); auto extension = rawFile.right(rawFile.length() - pos);
......
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