Skip to content
Snippets Groups Projects
Commit 3a01fb79 authored by Alex Buts's avatar Alex Buts
Browse files

refs #5955 Fixing build caused by move.

parent 31a90376
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ namespace MDAlgorithms ...@@ -40,7 +40,7 @@ namespace MDAlgorithms
void exec(); void exec();
template<typename MDE, size_t nd> template<typename MDE, size_t nd>
void finish(typename MDEventWorkspace<MDE, nd>::sptr ws); void finish(typename MDEvents::MDEventWorkspace<MDE, nd>::sptr ws);
}; };
......
...@@ -37,6 +37,7 @@ A very similar algorithm to this is [[ImportMDHistoWorkspace]], which takes it's ...@@ -37,6 +37,7 @@ A very similar algorithm to this is [[ImportMDHistoWorkspace]], which takes it's
using namespace Mantid::Kernel; using namespace Mantid::Kernel;
using namespace Mantid::API; using namespace Mantid::API;
using namespace Mantid::MDEvents;
namespace Mantid namespace Mantid
{ {
......
...@@ -34,6 +34,7 @@ namespace MDAlgorithms ...@@ -34,6 +34,7 @@ namespace MDAlgorithms
using namespace Mantid::Kernel; using namespace Mantid::Kernel;
using namespace Mantid::API; using namespace Mantid::API;
using namespace Mantid::Geometry; using namespace Mantid::Geometry;
using namespace Mantid::MDEvents;
// Register the algorithm into the AlgorithmFactory // Register the algorithm into the AlgorithmFactory
DECLARE_ALGORITHM(CreateMDWorkspace) DECLARE_ALGORITHM(CreateMDWorkspace)
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
using namespace Mantid; using namespace Mantid;
using namespace Mantid::MDEvents; using namespace Mantid::MDEvents;
using namespace Mantid::MDAlgorithms;
using namespace Mantid::API; using namespace Mantid::API;
class CreateMDHistoWorkspaceTest : public CxxTest::TestSuite class CreateMDHistoWorkspaceTest : public CxxTest::TestSuite
......
...@@ -13,9 +13,10 @@ ...@@ -13,9 +13,10 @@
#include <iostream> #include <iostream>
#include <Poco/File.h> #include <Poco/File.h>
using namespace Mantid::MDEvents;
using namespace Mantid::API; using namespace Mantid::API;
using namespace Mantid::Geometry; using namespace Mantid::Geometry;
using namespace Mantid::MDEvents;
using namespace Mantid::MDAlgorithms;
class CreateMDWorkspaceTest : public CxxTest::TestSuite class CreateMDWorkspaceTest : public CxxTest::TestSuite
{ {
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
#include "MantidAPI/FrameworkManager.h" #include "MantidAPI/FrameworkManager.h"
#include "MantidAPI/AnalysisDataService.h" #include "MantidAPI/AnalysisDataService.h"
#include "MantidAPI/IMDEventWorkspace.h" #include "MantidAPI/IMDEventWorkspace.h"
#include "MantidAPI/IAlgorithm.h"
#include "MantidMDEvents/MDEventWorkspace.h" #include "MantidMDEvents/MDEventWorkspace.h"
#include "MantidMDEvents/MDEvent.h" #include "MantidMDEvents/MDEvent.h"
#include "MantidMDEvents/CreateMDWorkspace.h"
#include <iostream> #include <iostream>
#include <iomanip> #include <iomanip>
...@@ -36,16 +36,16 @@ private: ...@@ -36,16 +36,16 @@ private:
{ {
ADS.remove(outWSName); ADS.remove(outWSName);
} }
CreateMDWorkspace createAlg; IAlgorithm* createAlg = FrameworkManager::Instance().createAlgorithm("CreateMDWorkspace");
createAlg.initialize(); createAlg->initialize();
createAlg.setProperty("Dimensions", 2); createAlg->setProperty("Dimensions", 2);
createAlg.setPropertyValue("Extents", "-10,10,-10,10"); createAlg->setPropertyValue("Extents", "-10,10,-10,10");
createAlg.setPropertyValue("Names", "A, B"); createAlg->setPropertyValue("Names", "A, B");
createAlg.setPropertyValue("Units", "m, m"); createAlg->setPropertyValue("Units", "m, m");
createAlg.setPropertyValue("EventType", eventType); createAlg->setPropertyValue("EventType", eventType);
createAlg.setPropertyValue("OutputWorkspace", outWSName); createAlg->setPropertyValue("OutputWorkspace", outWSName);
createAlg.execute(); createAlg->execute();
return ADS.retrieveWS<IMDEventWorkspace>(outWSName); return ADS.retrieveWS<IMDEventWorkspace>(outWSName);
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "MantidMDEvents/MDEventWorkspace.h" #include "MantidMDEvents/MDEventWorkspace.h"
#include "MantidMDEvents/MDGridBox.h" #include "MantidMDEvents/MDGridBox.h"
#include "MantidMDEvents/MDLeanEvent.h" #include "MantidMDEvents/MDLeanEvent.h"
#include "MantidMDEvents/CreateMDWorkspace.h" //#include "MantidMDEvents/CreateMDWorkspace.h"
#include "MantidTestHelpers/MDEventsTestHelper.h" #include "MantidTestHelpers/MDEventsTestHelper.h"
#include <boost/random/linear_congruential.hpp> #include <boost/random/linear_congruential.hpp>
#include <boost/random/mersenne_twister.hpp> #include <boost/random/mersenne_twister.hpp>
......
#ifndef VATESAPI_TEST_MOCKOBJECTS_H #ifndef VATESAPI_TEST_MOCKOBJECTS_H
#define VATESAPI_TEST_MOCKOBJECTS_H #define VATESAPI_TEST_MOCKOBJECTS_H
#include "MantidMDEvents/CreateMDWorkspace.h" //#include "MantidMDAlgorithms/CreateMDWorkspace.h"
#include "MantidAPI/AlgorithmManager.h" #include "MantidAPI/AlgorithmManager.h"
#include "MantidAPI/IMDIterator.h" #include "MantidAPI/IMDIterator.h"
#include "MantidAPI/IMDWorkspace.h" #include "MantidAPI/IMDWorkspace.h"
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "MantidVatesAPI/RebinningCutterXMLDefinitions.h" #include "MantidVatesAPI/RebinningCutterXMLDefinitions.h"
#include "MantidVatesAPI/WorkspaceProvider.h" #include "MantidVatesAPI/WorkspaceProvider.h"
#include "MantidAPI/NullCoordTransform.h" #include "MantidAPI/NullCoordTransform.h"
#include "MantidAPI/FrameworkManager.h"
#include <gmock/gmock.h> #include <gmock/gmock.h>
#include <vtkFieldData.h> #include <vtkFieldData.h>
#include <vtkCharArray.h> #include <vtkCharArray.h>
...@@ -316,14 +317,15 @@ class FakeProgressAction : public Mantid::VATES::ProgressAction ...@@ -316,14 +317,15 @@ class FakeProgressAction : public Mantid::VATES::ProgressAction
{ {
using namespace Mantid::API; using namespace Mantid::API;
AnalysisDataService::Instance().remove("3D_Workspace"); AnalysisDataService::Instance().remove("3D_Workspace");
Mantid::MDEvents::CreateMDWorkspace create; IAlgorithm* create = FrameworkManager::Instance().createAlgorithm("CreateMDWorkspace");
create.initialize();
create.setProperty("Dimensions", 4); create->initialize();
create.setPropertyValue("Extents","0,5,0,5,0,5,0,5"); create->setProperty("Dimensions", 4);
create.setPropertyValue("Names","A,B,C,D"); create->setPropertyValue("Extents","0,5,0,5,0,5,0,5");
create.setPropertyValue("Units","A,A,A,A"); create->setPropertyValue("Names","A,B,C,D");
create.setPropertyValue("OutputWorkspace", "3D_Workspace"); create->setPropertyValue("Units","A,A,A,A");
create.execute(); create->setPropertyValue("OutputWorkspace", "3D_Workspace");
create->execute();
return AnalysisDataService::Instance().retrieve("3D_Workspace"); return AnalysisDataService::Instance().retrieve("3D_Workspace");
} }
......
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