Skip to content

Commit

Permalink
Re #9553 Export individual peaks as separate spectra
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelalvarezbanos committed May 18, 2015
1 parent 25279b9 commit 0971c91
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -19,7 +19,7 @@ namespace CustomInterfaces

MatrixWorkspace_sptr ALCPeakFittingModel::exportWorkspace()
{
if ( m_data && m_data->getNumberHistograms() == 3 ) {
if ( m_data && m_data->getNumberHistograms() > 2 ) {

return boost::const_pointer_cast<MatrixWorkspace>(m_data);

Expand Down Expand Up @@ -54,11 +54,11 @@ namespace CustomInterfaces
fit->setProperty("Function", peaks->asString());
fit->setProperty("InputWorkspace", boost::const_pointer_cast<MatrixWorkspace>(m_data));
fit->setProperty("CreateOutput", true);
fit->setProperty("OutputCompositeMembers", true);
fit->execute();

m_data = fit->getProperty("OutputWorkspace");
m_parameterTable = fit->getProperty("OutputParameters");

setFittedPeaks(static_cast<IFunction_sptr>(fit->getProperty("Function")));
}

Expand Down

0 comments on commit 0971c91

Please sign in to comment.