diff --git a/Code/Mantid/Framework/PythonInterface/plugins/algorithms/PoldiLoadCrystalData.py b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/PoldiLoadCrystalData.py new file mode 100644 index 0000000000000000000000000000000000000000..918cba6c550db0a6db3520e52e0b9609c2991568 --- /dev/null +++ b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/PoldiLoadCrystalData.py @@ -0,0 +1,25 @@ +# pylint: disable=no-init,invalid-name,bare-except +from mantid.kernel import * +from mantid.simpleapi import * +from mantid.api import * + + +class PoldiLoadCrystalData(PythonAlgorithm): + def category(self): + return "SINQ\\POLDI" + + def name(self): + return "PoldiLoadCrystalData" + + def summary(self): + return ("The algorithm reads a POLDI crystal structure file and creates a WorkspaceGroup that contains tables" + "with the expected reflections.") + + def PyInit(self): + pass + + def PyExec(self): + pass + + +AlgorithmFactory.subscribe(PoldiLoadCrystalData) \ No newline at end of file diff --git a/Code/Mantid/Framework/PythonInterface/test/python/plugins/algorithms/CMakeLists.txt b/Code/Mantid/Framework/PythonInterface/test/python/plugins/algorithms/CMakeLists.txt index c47909fcd6b99c77c21d07c5674d4ff7ae23656d..c29bca1979110de343e8bbb475e71c22711786fe 100644 --- a/Code/Mantid/Framework/PythonInterface/test/python/plugins/algorithms/CMakeLists.txt +++ b/Code/Mantid/Framework/PythonInterface/test/python/plugins/algorithms/CMakeLists.txt @@ -57,6 +57,7 @@ set ( TEST_PY_FILES ExportExperimentLogTest.py PoldiMergeTest.py VesuvioResolutionTest.py + PoldiLoadCrystalDataTest.py ) check_tests_valid ( ${CMAKE_CURRENT_SOURCE_DIR} ${TEST_PY_FILES} ) diff --git a/Code/Mantid/Framework/PythonInterface/test/python/plugins/algorithms/PoldiLoadCrystalDataTest.py b/Code/Mantid/Framework/PythonInterface/test/python/plugins/algorithms/PoldiLoadCrystalDataTest.py new file mode 100644 index 0000000000000000000000000000000000000000..2039ed6a3fd9a3eb22f43a357f9e99198100ff09 --- /dev/null +++ b/Code/Mantid/Framework/PythonInterface/test/python/plugins/algorithms/PoldiLoadCrystalDataTest.py @@ -0,0 +1,17 @@ +import unittest + +from mantid.kernel import * +from mantid.api import * +from mantid.simpleapi import * + + +class PoldiLoadCrystalDataTest(unittest.TestCase): + def __init__(self, *args): + unittest.TestCase.__init__(self, *args) + + def test_Init(self): + self.assertTrue(False) + + +if __name__ == '__main__': + unittest.main() \ No newline at end of file