Skip to content

Commit

Permalink
Add validation to single fit options
Browse files Browse the repository at this point in the history
Refs #10626
  • Loading branch information
DanNixon committed Nov 25, 2014
1 parent 08e6624 commit f34bc8e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/Mantid/MantidQt/CustomInterfaces/src/ConvFit.cpp
Expand Up @@ -146,6 +146,7 @@ namespace IDA
{
if ( m_cfInputWS == NULL )
{
g_log.error("No workspace loaded");
return;
}

Expand Down Expand Up @@ -774,6 +775,9 @@ namespace IDA

void ConvFit::singleFit()
{
if(!validate())
return;

plotInput();

if ( m_curves["CFDataCurve"] == NULL )
Expand Down
3 changes: 3 additions & 0 deletions Code/Mantid/MantidQt/CustomInterfaces/src/FuryFit.cpp
Expand Up @@ -526,6 +526,9 @@ namespace IDA

void FuryFit::singleFit()
{
if(!validate())
return;

// First create the function
auto function = createFunction();

Expand Down
3 changes: 3 additions & 0 deletions Code/Mantid/MantidQt/CustomInterfaces/src/MSDFit.cpp
Expand Up @@ -88,6 +88,9 @@ namespace IDA

void MSDFit::singleFit()
{
if(!validate())
return;

QString pyInput =
"from IndirectDataAnalysis import msdfit\n"
"startX = " + QString::number(m_dblManager->value(m_properties["Start"])) +"\n"
Expand Down

0 comments on commit f34bc8e

Please sign in to comment.