Skip to content
Snippets Groups Projects
Commit e6148fdf authored by Vickie Lynch's avatar Vickie Lynch
Browse files

Refs #7553 preserveEvents=False agrees with True

parent 37cfccb9
No related merge requests found
...@@ -430,7 +430,7 @@ namespace Algorithms ...@@ -430,7 +430,7 @@ namespace Algorithms
API::MatrixWorkspace_sptr outputWS; API::MatrixWorkspace_sptr outputWS;
// make output Workspace the same type is the input, but with new length of signal array // make output Workspace the same type is the input, but with new length of signal array
outputWS = API::WorkspaceFactory::Instance().create(inputWS,numSpectra,m_numBins,m_numBins); outputWS = API::WorkspaceFactory::Instance().create(inputWS,numSpectra,m_numBins+1,m_numBins);
// Copy over the 'vertical' axis // Copy over the 'vertical' axis
......
...@@ -75,7 +75,7 @@ namespace Mantid ...@@ -75,7 +75,7 @@ namespace Mantid
void init(); void init();
void exec(); void exec();
void loadCalFile(const std::string &calFileName); void loadCalFile(const std::string &calFileName);
void rebin(API::MatrixWorkspace_sptr matrixws); API::MatrixWorkspace_sptr rebin(API::MatrixWorkspace_sptr matrixws);
API::MatrixWorkspace_sptr conjoinWorkspaces(API::MatrixWorkspace_sptr ws1, API::MatrixWorkspace_sptr ws2, API::MatrixWorkspace_sptr conjoinWorkspaces(API::MatrixWorkspace_sptr ws1, API::MatrixWorkspace_sptr ws2,
size_t offset); size_t offset);
......
...@@ -348,7 +348,7 @@ namespace WorkflowAlgorithms ...@@ -348,7 +348,7 @@ namespace WorkflowAlgorithms
m_outputW = maskAlg->getProperty("Workspace"); m_outputW = maskAlg->getProperty("Workspace");
if(!dspace) if(!dspace)
this->rebin(m_outputW); m_outputW = rebin(m_outputW);
g_log.information() << "running AlignDetectors\n"; g_log.information() << "running AlignDetectors\n";
API::IAlgorithm_sptr alignAlg = createChildAlgorithm("AlignDetectors"); API::IAlgorithm_sptr alignAlg = createChildAlgorithm("AlignDetectors");
...@@ -450,9 +450,9 @@ namespace WorkflowAlgorithms ...@@ -450,9 +450,9 @@ namespace WorkflowAlgorithms
if(dspace) if(dspace)
{ {
this->rebin(m_outputW); m_outputW = rebin(m_outputW);
if (m_processLowResTOF) if (m_processLowResTOF)
rebin(m_lowResW); m_lowResW = rebin(m_lowResW);
} }
doSortEvents(m_outputW); doSortEvents(m_outputW);
...@@ -472,9 +472,9 @@ namespace WorkflowAlgorithms ...@@ -472,9 +472,9 @@ namespace WorkflowAlgorithms
// but it changes the system tests // but it changes the system tests
if (dspace && m_resampleX != 0) if (dspace && m_resampleX != 0)
{ {
this->rebin(m_outputW); m_outputW = rebin(m_outputW);
if (m_processLowResTOF) if (m_processLowResTOF)
rebin(m_lowResW); m_lowResW = rebin(m_lowResW);
} }
if (l1 > 0) if (l1 > 0)
...@@ -584,7 +584,7 @@ namespace WorkflowAlgorithms ...@@ -584,7 +584,7 @@ namespace WorkflowAlgorithms
if (!m_dmaxs.empty()) if (!m_dmaxs.empty())
m_dmaxs.clear(); m_dmaxs.clear();
this->rebin(m_outputW); m_outputW = rebin(m_outputW);
// return the output workspace // return the output workspace
setProperty("OutputWorkspace",m_outputW); setProperty("OutputWorkspace",m_outputW);
...@@ -655,7 +655,7 @@ namespace WorkflowAlgorithms ...@@ -655,7 +655,7 @@ namespace WorkflowAlgorithms
//---------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------
/** Rebin /** Rebin
*/ */
void AlignAndFocusPowder::rebin(API::MatrixWorkspace_sptr matrixws) API::MatrixWorkspace_sptr AlignAndFocusPowder::rebin(API::MatrixWorkspace_sptr matrixws)
{ {
if (m_resampleX != 0) if (m_resampleX != 0)
{ {
...@@ -684,6 +684,7 @@ namespace WorkflowAlgorithms ...@@ -684,6 +684,7 @@ namespace WorkflowAlgorithms
alg->setProperty("LogBinning", (m_resampleX < 0)); alg->setProperty("LogBinning", (m_resampleX < 0));
alg->executeAsChildAlg(); alg->executeAsChildAlg();
matrixws = alg->getProperty("OutputWorkspace"); matrixws = alg->getProperty("OutputWorkspace");
return matrixws;
} }
else else
{ {
...@@ -697,6 +698,7 @@ namespace WorkflowAlgorithms ...@@ -697,6 +698,7 @@ namespace WorkflowAlgorithms
rebin3Alg->setProperty("Params",m_params); rebin3Alg->setProperty("Params",m_params);
rebin3Alg->executeAsChildAlg(); rebin3Alg->executeAsChildAlg();
matrixws = rebin3Alg->getProperty("OutputWorkspace"); matrixws = rebin3Alg->getProperty("OutputWorkspace");
return matrixws;
} }
} }
......
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