Skip to content
Snippets Groups Projects
Commit 04055b0a authored by Steve Williams's avatar Steve Williams
Browse files

Getting the test to compile re #3305

parent 80d53793
No related branches found
No related tags found
No related merge requests found
...@@ -282,40 +282,6 @@ private: ...@@ -282,40 +282,6 @@ private:
Mantid::API::MatrixWorkspace_sptr m_inputWS, m_wavNorm, m_pixel; Mantid::API::MatrixWorkspace_sptr m_inputWS, m_wavNorm, m_pixel;
std::string m_noGrav; std::string m_noGrav;
}; };
/*
class Q1D2TestPerformance : public CxxTest::TestSuite
{
public:
Mantid::API::MatrixWorkspace_sptr m_inputWS, m_wavNorm, m_pixel;
std::string m_outputWS;
void setUp()
{
//load all the spectra from the LOQ workspace
createInputWorkspaces(1, 17792, m_inputWS, m_wavNorm, m_pixel);
m_outputWS = "Q1D2Test_result";
}
void tearDown()
{
Mantid::API::AnalysisDataService::Instance().remove(m_outputWS);
}
void test_slow_performance()
{
Mantid::Algorithms::Q1D2 Q1D;
Q1D.initialize();
Q1D.setProperty("DetBankWorkspace", m_inputWS);
Q1D.setProperty("WavelengthAdj", m_wavNorm);
Q1D.setPropertyValue("OutputWorkspace", m_outputWS);
Q1D.setPropertyValue("OutputBinning", "0.1,-0.02,0.5");
Q1D.setPropertyValue("AccountForGravity", "1");
Q1D.execute();
}
};
*/
void createInputWorkspaces(int start, int end, Mantid::API::MatrixWorkspace_sptr & input, Mantid::API::MatrixWorkspace_sptr & wave, Mantid::API::MatrixWorkspace_sptr & pixels) void createInputWorkspaces(int start, int end, Mantid::API::MatrixWorkspace_sptr & input, Mantid::API::MatrixWorkspace_sptr & wave, Mantid::API::MatrixWorkspace_sptr & pixels)
{ {
std::string wsName("Q1D2Test_inputworkspace"), wavNorm("Q1D2Test_wave"); std::string wsName("Q1D2Test_inputworkspace"), wavNorm("Q1D2Test_wave");
......
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