From f31fed28bb687fef4477c32a334bdeccf12eadac Mon Sep 17 00:00:00 2001 From: Stuart Campbell <campbellsi@ornl.gov> Date: Wed, 29 Dec 2010 22:02:37 +0000 Subject: [PATCH] Fixing paths in algorithms tests. refs #1881 --- .../Algorithms/test/AlignDetectorsTest.h | 14 ++++++------- .../test/ApplyTransmissionCorrectionTest.h | 2 +- .../Algorithms/test/CalculateEfficiencyTest.h | 2 +- .../test/CalculateTransmissionTest.h | 2 +- .../Algorithms/test/ChangeBinOffsetTest.h | 6 +++--- .../test/CheckWorkspacesMatchTest.h | 2 +- .../Algorithms/test/CloneWorkspaceTest.h | 2 +- .../Algorithms/test/ConjoinWorkspacesTest.h | 8 ++++---- .../Algorithms/test/ConvertSpectrumAxisTest.h | 2 +- .../test/ConvertToMatrixWorkspaceTest.h | 2 +- .../Algorithms/test/ConvertUnitsTest.h | 8 ++++---- .../Algorithms/test/CorrectKiKfTest.h | 2 +- .../Algorithms/test/CorrectToFileTest.h | 2 +- .../test/DetectorEfficiencyCorTest.h | 2 +- .../test/DiffractionFocussing2Test.h | 14 ++++++------- .../test/DiffractionFocussing2_helper.py | 2 +- .../test/DiffractionFocussingTest.h | 4 ++-- .../Algorithms/test/ExtractFFTSpectrumTest.h | 2 +- .../Algorithms/test/FFTSmooth2Test.h | 8 ++++---- .../Algorithms/test/FilterByLogValueTest.h | 2 +- .../Algorithms/test/FilterByTimeTest.h | 6 +++--- .../test/FindCenterOfMassPositionTest.h | 2 +- .../Framework/Algorithms/test/FindPeaksTest.h | 4 ++-- .../Framework/Algorithms/test/GetEiTest.h | 10 +++++----- .../Algorithms/test/GroupWorkspacesTest.h | 20 +++++++++---------- .../Algorithms/test/MemoryLeakTest.h | 8 ++++---- .../Framework/Algorithms/test/MergeRunsTest.h | 8 ++++---- .../Algorithms/test/MultiplyRangeTest.h | 2 +- .../Algorithms/test/MuonAlphaCalcTest.h | 4 ++-- .../Algorithms/test/MuonAsymmetryCalcTest.h | 2 +- .../Algorithms/test/MuonRemoveExpDecayTest.h | 2 +- .../test/PlotAsymmetryByLogValueTest.h | 2 +- .../Framework/Algorithms/test/Q1DTest.h | 2 +- .../Algorithms/test/Q1DWeightedTest.h | 2 +- .../Framework/Algorithms/test/QxyTest.h | 2 +- .../Algorithms/test/RemoveBinsTest.h | 2 +- .../Framework/Algorithms/test/SofQWTest.h | 2 +- .../test/SolidAngleCorrectionTest.h | 2 +- .../Algorithms/test/StripVanadiumPeaksTest.h | 2 +- .../Algorithms/test/SumRowColumnTest.h | 2 +- .../Algorithms/test/SumSpectraTest.h | 2 +- .../Algorithms/test/TofCorrectionTest.h | 2 +- .../Framework/Algorithms/test/TransposeTest.h | 2 +- .../Algorithms/test/UnGroupWorkspacesTest.h | 4 ++-- .../Framework/Algorithms/test/UnwrapTest.h | 2 +- .../Algorithms/test/WeightedMeanTest.h | 4 ++-- 46 files changed, 95 insertions(+), 95 deletions(-) diff --git a/Code/Mantid/Framework/Algorithms/test/AlignDetectorsTest.h b/Code/Mantid/Framework/Algorithms/test/AlignDetectorsTest.h index dfddd41f32c..24c6f0058a9 100644 --- a/Code/Mantid/Framework/Algorithms/test/AlignDetectorsTest.h +++ b/Code/Mantid/Framework/Algorithms/test/AlignDetectorsTest.h @@ -27,7 +27,7 @@ public: { LoadRaw3 loader; loader.initialize(); - loader.setPropertyValue("Filename","../../../../Test/AutoTestData/HRP38692.raw"); + loader.setPropertyValue("Filename","HRP38692.raw"); inputWS = "rawWS"; loader.setPropertyValue("OutputWorkspace",inputWS); loader.setProperty("SpectrumMin",320); @@ -64,7 +64,7 @@ public: align.setPropertyValue("InputWorkspace", inputWS); const std::string outputWS = "aligned"; align.setPropertyValue("OutputWorkspace", outputWS); - align.setPropertyValue("CalibrationFile", "../../../../Test/AutoTestData/hrpd_new_072_01.cal"); + align.setPropertyValue("CalibrationFile", "hrpd_new_072_01.cal"); TS_ASSERT_THROWS_NOTHING( align.execute() ); TS_ASSERT( align.isExecuted() ); @@ -92,11 +92,11 @@ public: inputWS = "eventWS"; LoadEventPreNeXus loader; loader.initialize(); - std::string eventfile( "../../../../Test/AutoTestData/CNCS_7860_neutron_event.dat" ); - std::string pulsefile( "../../../../Test/AutoTestData/CNCS_7860_pulseid.dat" ); + std::string eventfile( "CNCS_7860_neutron_event.dat" ); + std::string pulsefile( "CNCS_7860_pulseid.dat" ); loader.setPropertyValue("EventFilename", eventfile); loader.setProperty("PulseidFilename", pulsefile); - loader.setPropertyValue("MappingFilename", "../../../../Test/AutoTestData/CNCS_TS_2008_08_18.dat"); + loader.setPropertyValue("MappingFilename", "CNCS_TS_2008_08_18.dat"); loader.setPropertyValue("OutputWorkspace", inputWS); // loader.setPropertyValue("InstrumentFilename", "../../../../Test/Instrument/CNCS_Definition.xml"); loader.execute(); @@ -123,7 +123,7 @@ public: align.setPropertyValue("InputWorkspace", inputWS); const std::string outputWS = inputWS; align.setPropertyValue("OutputWorkspace", outputWS); - align.setPropertyValue("CalibrationFile", "../../../../Test/AutoTestData/refl_fake.cal"); + align.setPropertyValue("CalibrationFile", "refl_fake.cal"); TS_ASSERT_THROWS_NOTHING( align.execute() ); TS_ASSERT( align.isExecuted() ); @@ -157,7 +157,7 @@ public: align.setPropertyValue("InputWorkspace", inputWS); const std::string outputWS = "eventWS_changed"; align.setPropertyValue("OutputWorkspace", outputWS); - align.setPropertyValue("CalibrationFile", "../../../../Test/AutoTestData/refl_fake.cal"); + align.setPropertyValue("CalibrationFile", "refl_fake.cal"); TS_ASSERT_THROWS_NOTHING( align.execute() ); TS_ASSERT( align.isExecuted() ); diff --git a/Code/Mantid/Framework/Algorithms/test/ApplyTransmissionCorrectionTest.h b/Code/Mantid/Framework/Algorithms/test/ApplyTransmissionCorrectionTest.h index 59905a257c8..f75ce0fec49 100644 --- a/Code/Mantid/Framework/Algorithms/test/ApplyTransmissionCorrectionTest.h +++ b/Code/Mantid/Framework/Algorithms/test/ApplyTransmissionCorrectionTest.h @@ -19,7 +19,7 @@ public: { Mantid::DataHandling::LoadSpice2D loader; loader.initialize(); - loader.setPropertyValue("Filename","../../../../Test/AutoTestData/BioSANS_test_data.xml"); + loader.setPropertyValue("Filename","BioSANS_test_data.xml"); loader.setPropertyValue("OutputWorkspace",inputWS); loader.execute(); diff --git a/Code/Mantid/Framework/Algorithms/test/CalculateEfficiencyTest.h b/Code/Mantid/Framework/Algorithms/test/CalculateEfficiencyTest.h index 6b18b8a5261..49635985f2d 100644 --- a/Code/Mantid/Framework/Algorithms/test/CalculateEfficiencyTest.h +++ b/Code/Mantid/Framework/Algorithms/test/CalculateEfficiencyTest.h @@ -144,7 +144,7 @@ public: { Mantid::DataHandling::LoadSpice2D loader; loader.initialize(); - loader.setPropertyValue("Filename","../../../../Test/AutoTestData/BioSANS_exp61_scan0004_0001.xml"); + loader.setPropertyValue("Filename","BioSANS_exp61_scan0004_0001.xml"); const std::string inputWS("wav"); loader.setPropertyValue("OutputWorkspace",inputWS); loader.execute(); diff --git a/Code/Mantid/Framework/Algorithms/test/CalculateTransmissionTest.h b/Code/Mantid/Framework/Algorithms/test/CalculateTransmissionTest.h index adc645ea138..c3ce67db8c3 100644 --- a/Code/Mantid/Framework/Algorithms/test/CalculateTransmissionTest.h +++ b/Code/Mantid/Framework/Algorithms/test/CalculateTransmissionTest.h @@ -20,7 +20,7 @@ public: { Mantid::DataHandling::LoadRaw3 loader; loader.initialize(); - loader.setPropertyValue("Filename","../../../../Test/AutoTestData/LOQ48127.raw"); + loader.setPropertyValue("Filename","LOQ48127.raw"); loader.setPropertyValue("OutputWorkspace",inputWS); loader.setPropertyValue("SpectrumMin","2"); loader.setPropertyValue("SpectrumMax","4"); diff --git a/Code/Mantid/Framework/Algorithms/test/ChangeBinOffsetTest.h b/Code/Mantid/Framework/Algorithms/test/ChangeBinOffsetTest.h index 9c262754aae..92b9035c6db 100644 --- a/Code/Mantid/Framework/Algorithms/test/ChangeBinOffsetTest.h +++ b/Code/Mantid/Framework/Algorithms/test/ChangeBinOffsetTest.h @@ -159,11 +159,11 @@ public: this->inputSpace = "eventWS"; Mantid::DataHandling::LoadEventPreNeXus loader; loader.initialize(); - std::string eventfile( "../../../../Test/AutoTestData/CNCS_7860_neutron_event.dat" ); - std::string pulsefile( "../../../../Test/AutoTestData/CNCS_7860_pulseid.dat" ); + std::string eventfile( "CNCS_7860_neutron_event.dat" ); + std::string pulsefile( "CNCS_7860_pulseid.dat" ); loader.setPropertyValue("EventFilename", eventfile); loader.setProperty("PulseidFilename", pulsefile); - loader.setPropertyValue("MappingFilename", "../../../../Test/AutoTestData/CNCS_TS_2008_08_18.dat"); + loader.setPropertyValue("MappingFilename", "CNCS_TS_2008_08_18.dat"); loader.setPropertyValue("OutputWorkspace", this->inputSpace); loader.execute(); TS_ASSERT (loader.isExecuted() ); diff --git a/Code/Mantid/Framework/Algorithms/test/CheckWorkspacesMatchTest.h b/Code/Mantid/Framework/Algorithms/test/CheckWorkspacesMatchTest.h index e6d25c1fac5..8a75c975cb5 100644 --- a/Code/Mantid/Framework/Algorithms/test/CheckWorkspacesMatchTest.h +++ b/Code/Mantid/Framework/Algorithms/test/CheckWorkspacesMatchTest.h @@ -23,7 +23,7 @@ public: { Mantid::DataHandling::LoadRaw3 loader; loader.initialize(); - loader.setPropertyValue("Filename", "../../../../Test/AutoTestData/LOQ48127.raw"); + loader.setPropertyValue("Filename", "LOQ48127.raw"); loader.setPropertyValue("OutputWorkspace", loq); loader.execute(); } diff --git a/Code/Mantid/Framework/Algorithms/test/CloneWorkspaceTest.h b/Code/Mantid/Framework/Algorithms/test/CloneWorkspaceTest.h index a49a1a223c1..13c4eb5520b 100644 --- a/Code/Mantid/Framework/Algorithms/test/CloneWorkspaceTest.h +++ b/Code/Mantid/Framework/Algorithms/test/CloneWorkspaceTest.h @@ -44,7 +44,7 @@ public: Mantid::DataHandling::LoadRaw3 loader; loader.initialize(); - loader.setPropertyValue("Filename", "../../../../Test/AutoTestData/LOQ48127.raw"); + loader.setPropertyValue("Filename", "LOQ48127.raw"); loader.setPropertyValue("OutputWorkspace", "in"); loader.execute(); diff --git a/Code/Mantid/Framework/Algorithms/test/ConjoinWorkspacesTest.h b/Code/Mantid/Framework/Algorithms/test/ConjoinWorkspacesTest.h index c9c01d8d7c7..6118775e12b 100644 --- a/Code/Mantid/Framework/Algorithms/test/ConjoinWorkspacesTest.h +++ b/Code/Mantid/Framework/Algorithms/test/ConjoinWorkspacesTest.h @@ -23,7 +23,7 @@ public: IAlgorithm* loader; loader = new Mantid::DataHandling::LoadRaw; loader->initialize(); - loader->setPropertyValue("Filename", "../../../../Test/AutoTestData/OSI11886.raw"); + loader->setPropertyValue("Filename", "OSI11886.raw"); loader->setPropertyValue("OutputWorkspace", "top"); loader->setPropertyValue("SpectrumMin","1"); loader->setPropertyValue("SpectrumMax","10"); @@ -33,7 +33,7 @@ public: loader = new Mantid::DataHandling::LoadRaw; loader->initialize(); - loader->setPropertyValue("Filename", "../../../../Test/AutoTestData/OSI11886.raw"); + loader->setPropertyValue("Filename", "OSI11886.raw"); loader->setPropertyValue("OutputWorkspace", "bottom"); loader->setPropertyValue("SpectrumMin","11"); loader->setPropertyValue("SpectrumMax","25"); @@ -44,7 +44,7 @@ public: //Now some event workspaces loader = new Mantid::DataHandling::LoadEventPreNeXus; loader->initialize(); - loader->setPropertyValue("EventFilename", "../../../../Test/AutoTestData/VULCAN_2916_neutron0_event.dat"); + loader->setPropertyValue("EventFilename", "VULCAN_2916_neutron0_event.dat"); loader->setPropertyValue("OutputWorkspace", "vulcan0"); TS_ASSERT_THROWS_NOTHING( loader->execute() ); TS_ASSERT( loader->isExecuted() ); @@ -52,7 +52,7 @@ public: loader = new Mantid::DataHandling::LoadEventPreNeXus; loader->initialize(); - loader->setPropertyValue("EventFilename", "../../../../Test/AutoTestData/VULCAN_2916_neutron1_event.dat"); + loader->setPropertyValue("EventFilename", "VULCAN_2916_neutron1_event.dat"); loader->setPropertyValue("OutputWorkspace", "vulcan1"); TS_ASSERT_THROWS_NOTHING( loader->execute() ); TS_ASSERT( loader->isExecuted() ); diff --git a/Code/Mantid/Framework/Algorithms/test/ConvertSpectrumAxisTest.h b/Code/Mantid/Framework/Algorithms/test/ConvertSpectrumAxisTest.h index 90386297fec..391675223f0 100644 --- a/Code/Mantid/Framework/Algorithms/test/ConvertSpectrumAxisTest.h +++ b/Code/Mantid/Framework/Algorithms/test/ConvertSpectrumAxisTest.h @@ -50,7 +50,7 @@ public: Mantid::DataHandling::LoadRaw3 loader; loader.initialize(); - loader.setPropertyValue("Filename","../../../../Test/AutoTestData/LOQ48127.raw"); + loader.setPropertyValue("Filename","LOQ48127.raw"); loader.setPropertyValue("OutputWorkspace",inputWS); loader.setPropertyValue("SpectrumMin","2"); loader.setPropertyValue("SpectrumMax","3"); diff --git a/Code/Mantid/Framework/Algorithms/test/ConvertToMatrixWorkspaceTest.h b/Code/Mantid/Framework/Algorithms/test/ConvertToMatrixWorkspaceTest.h index 8d20359ac7f..f939b025608 100644 --- a/Code/Mantid/Framework/Algorithms/test/ConvertToMatrixWorkspaceTest.h +++ b/Code/Mantid/Framework/Algorithms/test/ConvertToMatrixWorkspaceTest.h @@ -39,7 +39,7 @@ public: Mantid::DataHandling::LoadRaw3 loader; loader.initialize(); - loader.setPropertyValue("Filename", "../../../../Test/AutoTestData/LOQ48127.raw"); + loader.setPropertyValue("Filename", "LOQ48127.raw"); loader.setPropertyValue("OutputWorkspace", "in"); loader.execute(); diff --git a/Code/Mantid/Framework/Algorithms/test/ConvertUnitsTest.h b/Code/Mantid/Framework/Algorithms/test/ConvertUnitsTest.h index f3d23931011..9e78f54be51 100644 --- a/Code/Mantid/Framework/Algorithms/test/ConvertUnitsTest.h +++ b/Code/Mantid/Framework/Algorithms/test/ConvertUnitsTest.h @@ -193,7 +193,7 @@ public: { Mantid::DataHandling::LoadRaw loader; loader.initialize(); - loader.setPropertyValue("Filename", "../../../../Test/AutoTestData/MAR11060.raw"); + loader.setPropertyValue("Filename", "MAR11060.raw"); loader.setPropertyValue("SpectrumList", "900"); std::string ws = "mar"; loader.setPropertyValue("OutputWorkspace", ws); @@ -239,11 +239,11 @@ public: this->inputSpace = "eventWS"; Mantid::DataHandling::LoadEventPreNeXus loader; loader.initialize(); - std::string eventfile( "../../../../Test/AutoTestData/CNCS_7860_neutron_event.dat" ); - std::string pulsefile( "../../../../Test/AutoTestData/CNCS_7860_pulseid.dat" ); + std::string eventfile( "CNCS_7860_neutron_event.dat" ); + std::string pulsefile( "CNCS_7860_pulseid.dat" ); loader.setPropertyValue("EventFilename", eventfile); loader.setProperty("PulseidFilename", pulsefile); - loader.setPropertyValue("MappingFilename", "../../../../Test/AutoTestData/CNCS_TS_2008_08_18.dat"); + loader.setPropertyValue("MappingFilename", "CNCS_TS_2008_08_18.dat"); loader.setPropertyValue("OutputWorkspace", this->inputSpace); // loader.setPropertyValue("InstrumentFilename", "../../../../Test/Instrument/CNCS_Definition.xml"); loader.execute(); diff --git a/Code/Mantid/Framework/Algorithms/test/CorrectKiKfTest.h b/Code/Mantid/Framework/Algorithms/test/CorrectKiKfTest.h index 350ab787f0f..be57e9bac8a 100644 --- a/Code/Mantid/Framework/Algorithms/test/CorrectKiKfTest.h +++ b/Code/Mantid/Framework/Algorithms/test/CorrectKiKfTest.h @@ -150,7 +150,7 @@ public: { Mantid::DataHandling::LoadRaw3 loader; loader.initialize(); - loader.setPropertyValue("Filename","../../../../Test/AutoTestData/IRS38633.raw"); + loader.setPropertyValue("Filename","IRS38633.raw"); const std::string initialWS("IRS"); const std::string intermediaryWS("IRSenergy"); const std::string finalWS("Corrected"); diff --git a/Code/Mantid/Framework/Algorithms/test/CorrectToFileTest.h b/Code/Mantid/Framework/Algorithms/test/CorrectToFileTest.h index a3003e5cc22..3ed658acb9d 100644 --- a/Code/Mantid/Framework/Algorithms/test/CorrectToFileTest.h +++ b/Code/Mantid/Framework/Algorithms/test/CorrectToFileTest.h @@ -17,7 +17,7 @@ public: CorrectToFileTest() : inputFile("") { - inputFile = Poco::Path(Poco::Path::current()).resolve("../../../../Test/AutoTestData/DIRECT.041").toString(); + inputFile = Poco::Path(Poco::Path::current()).resolve("DIRECT.041").toString(); } void testInit() diff --git a/Code/Mantid/Framework/Algorithms/test/DetectorEfficiencyCorTest.h b/Code/Mantid/Framework/Algorithms/test/DetectorEfficiencyCorTest.h index b1cd3dbbce0..6b7f8ab7c49 100644 --- a/Code/Mantid/Framework/Algorithms/test/DetectorEfficiencyCorTest.h +++ b/Code/Mantid/Framework/Algorithms/test/DetectorEfficiencyCorTest.h @@ -43,7 +43,7 @@ public: m_DatFile("DetectorEfficiencyCorTest_filename.dat") { // the Ei value depends on the RAW file, during normal testing only use the small RAW file - m_Ei = 12.9462875; m_rawFile = Poco::Path(Poco::Path::current()).resolve("../../../../Test/AutoTestData/MAR11001.raw").toString(); + m_Ei = 12.9462875; m_rawFile = Poco::Path(Poco::Path::current()).resolve("MAR11001.raw").toString(); } void setUp() diff --git a/Code/Mantid/Framework/Algorithms/test/DiffractionFocussing2Test.h b/Code/Mantid/Framework/Algorithms/test/DiffractionFocussing2Test.h index 8622ce5dee6..1b24abec368 100644 --- a/Code/Mantid/Framework/Algorithms/test/DiffractionFocussing2Test.h +++ b/Code/Mantid/Framework/Algorithms/test/DiffractionFocussing2Test.h @@ -47,7 +47,7 @@ public: { Mantid::DataHandling::LoadRaw loader; loader.initialize(); - loader.setPropertyValue("Filename", "../../../../Test/AutoTestData/HRP38692.raw"); + loader.setPropertyValue("Filename", "HRP38692.raw"); std::string outputSpace = "tofocus"; loader.setPropertyValue("OutputWorkspace", outputSpace); @@ -61,13 +61,13 @@ public: align.initialize(); align.setPropertyValue("InputWorkspace",outputSpace); align.setPropertyValue("OutputWorkspace",outputSpace); - align.setPropertyValue("CalibrationFile","../../../../Test/AutoTestData/hrpd_new_072_01.cal"); + align.setPropertyValue("CalibrationFile","hrpd_new_072_01.cal"); TS_ASSERT_THROWS_NOTHING( align.execute() ); TS_ASSERT( align.isExecuted() ); focus.setPropertyValue("InputWorkspace", outputSpace); focus.setPropertyValue("OutputWorkspace", "focusedWS" ); - focus.setPropertyValue("GroupingFileName","../../../../Test/AutoTestData/hrpd_new_072_01.cal"); + focus.setPropertyValue("GroupingFileName","hrpd_new_072_01.cal"); TS_ASSERT_THROWS_NOTHING( focus.execute() ); TS_ASSERT( focus.isExecuted() ); @@ -88,9 +88,9 @@ public: LoadEventPreNeXus * eventLoader; eventLoader = new LoadEventPreNeXus(); eventLoader->initialize(); - eventLoader->setPropertyValue("EventFilename", "../../../../Test/AutoTestData/REF_L_32035_neutron_event.dat"); - eventLoader->setProperty("PulseidFilename", "../../../../Test/AutoTestData/REF_L_32035_pulseid.dat"); - eventLoader->setPropertyValue("MappingFilename", "../../../../Test/AutoTestData/REF_L_TS_2010_02_19.dat"); + eventLoader->setPropertyValue("EventFilename", "REF_L_32035_neutron_event.dat"); + eventLoader->setProperty("PulseidFilename", "REF_L_32035_pulseid.dat"); + eventLoader->setPropertyValue("MappingFilename", "REF_L_TS_2010_02_19.dat"); eventLoader->setPropertyValue("OutputWorkspace", "refl"); TS_ASSERT( eventLoader->execute() ); @@ -122,7 +122,7 @@ public: focus.setPropertyValue("OutputWorkspace", outputws); //This fake calibration file was generated using DiffractionFocussing2Test_helper.py - focus.setPropertyValue("GroupingFileName","../../../../Test/AutoTestData/refl_fake.cal"); + focus.setPropertyValue("GroupingFileName","refl_fake.cal"); //OK, run the algorithm focus.execute(); diff --git a/Code/Mantid/Framework/Algorithms/test/DiffractionFocussing2_helper.py b/Code/Mantid/Framework/Algorithms/test/DiffractionFocussing2_helper.py index cf80aad65a7..705107dbfcd 100644 --- a/Code/Mantid/Framework/Algorithms/test/DiffractionFocussing2_helper.py +++ b/Code/Mantid/Framework/Algorithms/test/DiffractionFocussing2_helper.py @@ -1,6 +1,6 @@ """This script outputs a fake refl calibration file.""" numpix = 304*256+100 -outfile = "../../../../Test/AutoTestData/refl_fake.cal" +outfile = "../../../../../Test/AutoTestData/refl_fake.cal" f = open(outfile, 'w') f.write("# refl FAKE detector file, written for a test\n") f.write("# Format: number UDET offset select group\n") diff --git a/Code/Mantid/Framework/Algorithms/test/DiffractionFocussingTest.h b/Code/Mantid/Framework/Algorithms/test/DiffractionFocussingTest.h index 1911e88786b..1d01843b82a 100644 --- a/Code/Mantid/Framework/Algorithms/test/DiffractionFocussingTest.h +++ b/Code/Mantid/Framework/Algorithms/test/DiffractionFocussingTest.h @@ -39,7 +39,7 @@ public: { IAlgorithm* loader = new Mantid::DataHandling::LoadRaw; loader->initialize(); - loader->setPropertyValue("Filename", "../../../../Test/AutoTestData/HRP38692.raw"); + loader->setPropertyValue("Filename", "HRP38692.raw"); std::string outputSpace = "tofocus"; loader->setPropertyValue("OutputWorkspace", outputSpace); @@ -50,7 +50,7 @@ public: focus.setPropertyValue("InputWorkspace", outputSpace); focus.setPropertyValue("OutputWorkspace", "focusedWS" ); - focus.setPropertyValue("GroupingFileName","../../../../Test/AutoTestData/hrpd_new_072_01.cal"); + focus.setPropertyValue("GroupingFileName","hrpd_new_072_01.cal"); TS_ASSERT_THROWS_NOTHING( focus.execute() ); TS_ASSERT( focus.isExecuted() ); diff --git a/Code/Mantid/Framework/Algorithms/test/ExtractFFTSpectrumTest.h b/Code/Mantid/Framework/Algorithms/test/ExtractFFTSpectrumTest.h index 3927ab43c62..9f7e4e45fcc 100644 --- a/Code/Mantid/Framework/Algorithms/test/ExtractFFTSpectrumTest.h +++ b/Code/Mantid/Framework/Algorithms/test/ExtractFFTSpectrumTest.h @@ -43,7 +43,7 @@ public: IAlgorithm* loader; loader = new LoadNexus; loader->initialize(); - loader->setPropertyValue("Filename", "../../../../Test/AutoTestData/IRS26176_ipg.nxs"); + loader->setPropertyValue("Filename", "IRS26176_ipg.nxs"); loader->setPropertyValue("OutputWorkspace", "alg_irs_r"); loader->setPropertyValue("SpectrumMin", "2"); loader->setPropertyValue("SpectrumMax", "3"); diff --git a/Code/Mantid/Framework/Algorithms/test/FFTSmooth2Test.h b/Code/Mantid/Framework/Algorithms/test/FFTSmooth2Test.h index 871f2a28550..bab6dbbcb37 100644 --- a/Code/Mantid/Framework/Algorithms/test/FFTSmooth2Test.h +++ b/Code/Mantid/Framework/Algorithms/test/FFTSmooth2Test.h @@ -67,12 +67,12 @@ public: { // load input and "Gold" result workspaces Mantid::NeXus::LoadNexusProcessed loader; loader.initialize(); - loader.setProperty("Filename","../../../../Test/AutoTestData/MultispectralTestData.nxs"); + loader.setProperty("Filename","MultispectralTestData.nxs"); loader.setProperty("OutputWorkspace","TestInputWS"); loader.execute(); loader.initialize(); - loader.setProperty("Filename","../../../../Test/AutoTestData/FFTSmooth2_Zeroing.nxs"); + loader.setProperty("Filename","FFTSmooth2_Zeroing.nxs"); loader.setProperty("OutputWorkspace","ZeroingGoldWS"); loader.execute(); // create and execute the algorithm for "Zeroing" @@ -115,12 +115,12 @@ public: { // load input and "Gold" result workspaces Mantid::NeXus::LoadNexusProcessed loader; loader.initialize(); - loader.setProperty("Filename","../../../../Test/AutoTestData/MultispectralTestData.nxs"); + loader.setProperty("Filename","MultispectralTestData.nxs"); loader.setProperty("OutputWorkspace","TestInputWS"); loader.execute(); loader.initialize(); - loader.setProperty("Filename","../../../../Test/AutoTestData/FFTSmooth2_Butterworth.nxs"); + loader.setProperty("Filename","FFTSmooth2_Butterworth.nxs"); loader.setProperty("OutputWorkspace","ButterworthGoldWS"); loader.execute(); // create and execute the algorithm for "Butterworth" diff --git a/Code/Mantid/Framework/Algorithms/test/FilterByLogValueTest.h b/Code/Mantid/Framework/Algorithms/test/FilterByLogValueTest.h index 63dd5c3e198..0ed40f89d88 100644 --- a/Code/Mantid/Framework/Algorithms/test/FilterByLogValueTest.h +++ b/Code/Mantid/Framework/Algorithms/test/FilterByLogValueTest.h @@ -38,7 +38,7 @@ public: { IAlgorithm_sptr loader = AlgorithmManager::Instance().create("LoadSNSEventNexus"); loader->initialize(); - loader->setPropertyValue("Filename", "../../../../Test/AutoTestData/CNCS_7860_event.nxs"); + loader->setPropertyValue("Filename", "CNCS_7860_event.nxs"); loader->setPropertyValue("OutputWorkspace", inputWS); loader->execute(); TS_ASSERT (loader->isExecuted() ); diff --git a/Code/Mantid/Framework/Algorithms/test/FilterByTimeTest.h b/Code/Mantid/Framework/Algorithms/test/FilterByTimeTest.h index 0301e4f9301..c4fca6f4517 100644 --- a/Code/Mantid/Framework/Algorithms/test/FilterByTimeTest.h +++ b/Code/Mantid/Framework/Algorithms/test/FilterByTimeTest.h @@ -35,11 +35,11 @@ public: inputWS = "eventWS"; LoadEventPreNeXus loader; loader.initialize(); - std::string eventfile( "../../../../Test/AutoTestData/CNCS_7860_neutron_event.dat" ); - std::string pulsefile( "../../../../Test/AutoTestData/CNCS_7860_pulseid.dat" ); + std::string eventfile( "CNCS_7860_neutron_event.dat" ); + std::string pulsefile( "CNCS_7860_pulseid.dat" ); loader.setPropertyValue("EventFilename", eventfile); loader.setProperty("PulseidFilename", pulsefile); - loader.setPropertyValue("MappingFilename", "../../../../Test/AutoTestData/CNCS_TS_2008_08_18.dat"); + loader.setPropertyValue("MappingFilename", "CNCS_TS_2008_08_18.dat"); loader.setPropertyValue("OutputWorkspace", inputWS); loader.execute(); TS_ASSERT (loader.isExecuted() ); diff --git a/Code/Mantid/Framework/Algorithms/test/FindCenterOfMassPositionTest.h b/Code/Mantid/Framework/Algorithms/test/FindCenterOfMassPositionTest.h index 2006d0761b4..ead279df7b8 100644 --- a/Code/Mantid/Framework/Algorithms/test/FindCenterOfMassPositionTest.h +++ b/Code/Mantid/Framework/Algorithms/test/FindCenterOfMassPositionTest.h @@ -158,7 +158,7 @@ public: Mantid::Algorithms::FindCenterOfMassPosition center; Mantid::DataHandling::LoadSpice2D loader; loader.initialize(); - loader.setPropertyValue("Filename","../../../../Test/AutoTestData/BioSANS_empty_cell.xml"); + loader.setPropertyValue("Filename","BioSANS_empty_cell.xml"); const std::string inputWS("wav"); loader.setPropertyValue("OutputWorkspace",inputWS); loader.execute(); diff --git a/Code/Mantid/Framework/Algorithms/test/FindPeaksTest.h b/Code/Mantid/Framework/Algorithms/test/FindPeaksTest.h index 00feb5a5599..84b5f8b8ad9 100644 --- a/Code/Mantid/Framework/Algorithms/test/FindPeaksTest.h +++ b/Code/Mantid/Framework/Algorithms/test/FindPeaksTest.h @@ -19,7 +19,7 @@ public: { Mantid::NeXus::LoadNexusProcessed loader; loader.initialize(); - loader.setProperty("Filename","../../../../Test/AutoTestData/focussed.nxs"); + loader.setProperty("Filename","focussed.nxs"); loader.setProperty("OutputWorkspace","peaksWS"); loader.execute(); } @@ -71,7 +71,7 @@ public: { Mantid::NeXus::LoadNexusProcessed loader; loader.initialize(); - loader.setProperty("Filename","../../../../Test/AutoTestData/PG3_733_focussed.nxs"); + loader.setProperty("Filename","PG3_733_focussed.nxs"); loader.setProperty("OutputWorkspace","vanadium"); loader.execute(); } diff --git a/Code/Mantid/Framework/Algorithms/test/GetEiTest.h b/Code/Mantid/Framework/Algorithms/test/GetEiTest.h index 656e1c7df55..d09e95c36c8 100644 --- a/Code/Mantid/Framework/Algorithms/test/GetEiTest.h +++ b/Code/Mantid/Framework/Algorithms/test/GetEiTest.h @@ -106,11 +106,11 @@ public: GetEiTest() : m_WS("GetEi_input_workspace") { - m_MARI1 = Poco::Path(Poco::Path::current()).resolve("../../../../Test/AutoTestData/MAR11001.raw").toString(); - m_MARI2 = Poco::Path(Poco::Path::current()).resolve("../../../../Test/AutoTestData/MAR15306.raw").toString(); - m_MARI3 = Poco::Path(Poco::Path::current()).resolve("../../../../Test/AutoTestData/MAR15317.raw").toString(); - m_MAPS = Poco::Path(Poco::Path::current()).resolve("../../../../Test/AutoTestData/MAP10266.raw").toString(); - m_MERLIN = Poco::Path(Poco::Path::current()).resolve("../../../../Test/AutoTestData/MER02257.raw").toString(); + m_MARI1 = Poco::Path(Poco::Path::current()).resolve("MAR11001.raw").toString(); + m_MARI2 = Poco::Path(Poco::Path::current()).resolve("MAR15306.raw").toString(); + m_MARI3 = Poco::Path(Poco::Path::current()).resolve("MAR15317.raw").toString(); + m_MAPS = Poco::Path(Poco::Path::current()).resolve("MAP10266.raw").toString(); + m_MERLIN = Poco::Path(Poco::Path::current()).resolve("MER02257.raw").toString(); } private: diff --git a/Code/Mantid/Framework/Algorithms/test/GroupWorkspacesTest.h b/Code/Mantid/Framework/Algorithms/test/GroupWorkspacesTest.h index 6f0d4aaec5f..6e40ae206d7 100644 --- a/Code/Mantid/Framework/Algorithms/test/GroupWorkspacesTest.h +++ b/Code/Mantid/Framework/Algorithms/test/GroupWorkspacesTest.h @@ -58,7 +58,7 @@ public: { LoadRaw3 alg; alg.initialize(); - TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("FileName","../../../../Test/AutoTestData/LOQ48097.raw")); + TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("FileName","LOQ48097.raw")); TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("OutputWorkspace","LOQ48097")); TS_ASSERT_THROWS_NOTHING( alg.execute()); TS_ASSERT( alg.isExecuted() ); @@ -78,14 +78,14 @@ public: LoadRaw3 alg; alg.initialize(); - TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("FileName","../../../../Test/AutoTestData/LOQ48097.raw")); + TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("FileName","LOQ48097.raw")); TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("OutputWorkspace","LOQ48097")); TS_ASSERT_THROWS_NOTHING( alg.execute()); TS_ASSERT( alg.isExecuted() ); LoadRaw3 alg1; alg1.initialize(); - TS_ASSERT_THROWS_NOTHING(alg1.setPropertyValue("FileName","../../../../Test/AutoTestData/LOQ48098.raw")); + TS_ASSERT_THROWS_NOTHING(alg1.setPropertyValue("FileName","LOQ48098.raw")); TS_ASSERT_THROWS_NOTHING(alg1.setPropertyValue("OutputWorkspace","LOQ48098")); TS_ASSERT_THROWS_NOTHING( alg1.execute()); TS_ASSERT( alg1.isExecuted() ); @@ -115,21 +115,21 @@ public: { LoadRaw3 alg; alg.initialize(); - TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("FileName","../../../../Test/AutoTestData/LOQ48094.raw")); + TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("FileName","LOQ48094.raw")); TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("OutputWorkspace","LOQ48094")); TS_ASSERT_THROWS_NOTHING( alg.execute()); TS_ASSERT( alg.isExecuted() ); LoadRaw3 alg1; alg1.initialize(); - TS_ASSERT_THROWS_NOTHING(alg1.setPropertyValue("FileName","../../../../Test/AutoTestData/LOQ48098.raw")); + TS_ASSERT_THROWS_NOTHING(alg1.setPropertyValue("FileName","LOQ48098.raw")); TS_ASSERT_THROWS_NOTHING(alg1.setPropertyValue("OutputWorkspace","LOQ48098")); TS_ASSERT_THROWS_NOTHING( alg1.execute()); TS_ASSERT( alg1.isExecuted() ); LoadRaw3 alg2; alg2.initialize(); - TS_ASSERT_THROWS_NOTHING(alg2.setPropertyValue("FileName","../../../../Test/AutoTestData/LOQ48097.raw")); + TS_ASSERT_THROWS_NOTHING(alg2.setPropertyValue("FileName","LOQ48097.raw")); TS_ASSERT_THROWS_NOTHING(alg2.setPropertyValue("OutputWorkspace","LOQ48097")); TS_ASSERT_THROWS_NOTHING( alg2.execute()); TS_ASSERT( alg2.isExecuted() ); @@ -162,14 +162,14 @@ public: { LoadRaw3 alg; alg.initialize(); - TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("FileName","../../../../Test/AutoTestData/EVS13895.raw")); + TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("FileName","EVS13895.raw")); TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("OutputWorkspace","EVS13895")); TS_ASSERT_THROWS_NOTHING( alg.execute()); TS_ASSERT( alg.isExecuted() ); LoadRaw3 alg1; alg1.initialize(); - TS_ASSERT_THROWS_NOTHING(alg1.setPropertyValue("FileName","../../../../Test/AutoTestData/LOQ48098.raw")); + TS_ASSERT_THROWS_NOTHING(alg1.setPropertyValue("FileName","LOQ48098.raw")); TS_ASSERT_THROWS_NOTHING(alg1.setPropertyValue("OutputWorkspace","LOQ48098")); TS_ASSERT_THROWS_NOTHING( alg1.execute()); TS_ASSERT( alg1.isExecuted() ); @@ -215,14 +215,14 @@ public: { LoadRaw3 alg; alg.initialize(); - TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("FileName","../../../../Test/AutoTestData/LOQ48094.raw")); + TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("FileName","LOQ48094.raw")); TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("OutputWorkspace","LOQ48094")); TS_ASSERT_THROWS_NOTHING( alg.execute()); TS_ASSERT( alg.isExecuted() ); Mantid::NeXus::LoadNexusProcessed loader; loader.initialize(); - loader.setProperty("Filename","../../../../Test/AutoTestData/focussed.nxs"); + loader.setProperty("Filename","focussed.nxs"); loader.setProperty("OutputWorkspace","peaksWS"); TS_ASSERT_THROWS_NOTHING(loader.execute()); diff --git a/Code/Mantid/Framework/Algorithms/test/MemoryLeakTest.h b/Code/Mantid/Framework/Algorithms/test/MemoryLeakTest.h index e6a866348fe..98318101135 100644 --- a/Code/Mantid/Framework/Algorithms/test/MemoryLeakTest.h +++ b/Code/Mantid/Framework/Algorithms/test/MemoryLeakTest.h @@ -159,7 +159,7 @@ public: // IAlgorithm_sptr ld = AlgorithmFactory::Instance().create("LoadLogsFromSNSNexus",1); // std::string outws_name = "cncs"; // ld->initialize(); -// ld->setPropertyValue("Filename","/home/8oz/data/PG3_1370_event.nxs"); +// ld->setPropertyValue("Filename","PG3_1370_event.nxs"); // ld->setPropertyValue("Workspace","fake"); // ld->execute(); // TS_ASSERT( ld->isExecuted() ); @@ -184,7 +184,7 @@ public: // CNCS_7850_event.nxs should be replaced by CNCS_7860_event.nxs and check if you need to change anything else -// ld.setPropertyValue("Filename","../../../../Test/AutoTestData/CNCS_7850_event.nxs"); +// ld.setPropertyValue("Filename","CNCS_7850_event.nxs"); // ld.setPropertyValue("OutputWorkspace",outws_name); // ld.setPropertyValue("FilterByTof_Min", "-1e6"); // ld.setPropertyValue("FilterByTof_Max", "1e6"); @@ -216,7 +216,7 @@ public: // CNCS_7850_event.nxs should be replaced by CNCS_7860_event.nxs and check if you need to change anything else -// ld->setPropertyValue("Filename","../../../../Test/AutoTestData/CNCS_7850_event.nxs"); +// ld->setPropertyValue("Filename","CNCS_7850_event.nxs"); // ld->setPropertyValue("OutputWorkspace",outws_name); // ld->setPropertyValue("FilterByTof_Min", "-1e6"); // ld->setPropertyValue("FilterByTof_Max", "1e6"); @@ -249,7 +249,7 @@ public: // CNCS_7850_event.nxs should be replaced by CNCS_7860_event.nxs and check if you need to change anything else -// ld->setPropertyValue("Filename","../../../../Test/AutoTestData/CNCS_7850_event.nxs"); +// ld->setPropertyValue("Filename","CNCS_7850_event.nxs"); // ld->setPropertyValue("OutputWorkspace",outws_name); // ld->setPropertyValue("FilterByTof_Min", "-1e6"); // ld->setPropertyValue("FilterByTof_Max", "1e6"); diff --git a/Code/Mantid/Framework/Algorithms/test/MergeRunsTest.h b/Code/Mantid/Framework/Algorithms/test/MergeRunsTest.h index e6017734fa5..d2f67d286ea 100644 --- a/Code/Mantid/Framework/Algorithms/test/MergeRunsTest.h +++ b/Code/Mantid/Framework/Algorithms/test/MergeRunsTest.h @@ -39,8 +39,8 @@ public: //----------------------------------------------------------------------------------------------- void testExec_Event_CNCS() { - std::string eventfile1( "../../../../Test/AutoTestData/CNCS_7860_neutron_event.dat" ); - std::string eventfile2( "../../../../Test/AutoTestData/CNCS_7860_neutron_event.dat" ); + std::string eventfile1( "CNCS_7860_neutron_event.dat" ); + std::string eventfile2( "CNCS_7860_neutron_event.dat" ); DataHandling::LoadEventPreNeXus * eventLoader; TimeSeriesProperty<double>* log; @@ -51,7 +51,7 @@ public: eventLoader = new DataHandling::LoadEventPreNeXus(); eventLoader->initialize(); eventLoader->setPropertyValue("EventFilename", eventfile1); - eventLoader->setPropertyValue("MappingFilename", "../../../../Test/AutoTestData/CNCS_TS_2008_08_18.dat"); + eventLoader->setPropertyValue("MappingFilename", "CNCS_TS_2008_08_18.dat"); eventLoader->setPropertyValue("OutputWorkspace", "cncs1"); eventLoader->setProperty("PadEmptyPixels", true); TS_ASSERT( eventLoader->execute() ); @@ -66,7 +66,7 @@ public: //For the second one, we wont pad the pixels eventLoader = new DataHandling::LoadEventPreNeXus(); eventLoader->initialize(); eventLoader->setPropertyValue("EventFilename", eventfile2); - eventLoader->setPropertyValue("MappingFilename", "../../../../Test/AutoTestData/CNCS_TS_2008_08_18.dat"); + eventLoader->setPropertyValue("MappingFilename", "CNCS_TS_2008_08_18.dat"); eventLoader->setPropertyValue("OutputWorkspace", "cncs2"); eventLoader->setProperty("PadEmptyPixels", false); TS_ASSERT( eventLoader->execute() ); diff --git a/Code/Mantid/Framework/Algorithms/test/MultiplyRangeTest.h b/Code/Mantid/Framework/Algorithms/test/MultiplyRangeTest.h index 568994f1a32..c0af957f3db 100644 --- a/Code/Mantid/Framework/Algorithms/test/MultiplyRangeTest.h +++ b/Code/Mantid/Framework/Algorithms/test/MultiplyRangeTest.h @@ -38,7 +38,7 @@ public: Mantid::DataHandling::LoadRaw3 loader; loader.initialize(); - loader.setPropertyValue("Filename","../../../../Test/AutoTestData/OFFSPEC00004622.raw"); + loader.setPropertyValue("Filename","OFFSPEC00004622.raw"); loader.setPropertyValue("OutputWorkspace","tomultiply"); loader.setPropertyValue("SpectrumList","1"); loader.setPropertyValue("LoadLogFiles","0"); diff --git a/Code/Mantid/Framework/Algorithms/test/MuonAlphaCalcTest.h b/Code/Mantid/Framework/Algorithms/test/MuonAlphaCalcTest.h index e6a9f03d9c0..aee18903027 100644 --- a/Code/Mantid/Framework/Algorithms/test/MuonAlphaCalcTest.h +++ b/Code/Mantid/Framework/Algorithms/test/MuonAlphaCalcTest.h @@ -43,7 +43,7 @@ public: //Load the muon nexus file loader.initialize(); - loader.setPropertyValue("Filename", "../../../../Test/AutoTestData/emu00006473.nxs"); + loader.setPropertyValue("Filename", "emu00006473.nxs"); loader.setPropertyValue("OutputWorkspace", "EMU6473"); TS_ASSERT_THROWS_NOTHING( loader.execute() ); TS_ASSERT_EQUALS(loader.isExecuted(),true); @@ -75,7 +75,7 @@ public: //Load the muon nexus file loader.initialize(); - loader.setPropertyValue("Filename", "../../../../Test/AutoTestData/emu00006473.nxs"); + loader.setPropertyValue("Filename", "emu00006473.nxs"); loader.setPropertyValue("OutputWorkspace", "EMU6473"); TS_ASSERT_THROWS_NOTHING( loader.execute() ); TS_ASSERT_EQUALS(loader.isExecuted(),true); diff --git a/Code/Mantid/Framework/Algorithms/test/MuonAsymmetryCalcTest.h b/Code/Mantid/Framework/Algorithms/test/MuonAsymmetryCalcTest.h index 9b19071be96..e55b45fe6fb 100644 --- a/Code/Mantid/Framework/Algorithms/test/MuonAsymmetryCalcTest.h +++ b/Code/Mantid/Framework/Algorithms/test/MuonAsymmetryCalcTest.h @@ -43,7 +43,7 @@ public: //Load the muon nexus file loader.initialize(); - loader.setPropertyValue("Filename", "../../../../Test/AutoTestData/emu00006473.nxs"); + loader.setPropertyValue("Filename", "emu00006473.nxs"); loader.setPropertyValue("OutputWorkspace", "EMU6473"); TS_ASSERT_THROWS_NOTHING( loader.execute() ); TS_ASSERT_EQUALS(loader.isExecuted(),true); diff --git a/Code/Mantid/Framework/Algorithms/test/MuonRemoveExpDecayTest.h b/Code/Mantid/Framework/Algorithms/test/MuonRemoveExpDecayTest.h index 82c1358be4f..ea1efd54edc 100644 --- a/Code/Mantid/Framework/Algorithms/test/MuonRemoveExpDecayTest.h +++ b/Code/Mantid/Framework/Algorithms/test/MuonRemoveExpDecayTest.h @@ -40,7 +40,7 @@ public: #ifndef _WIN64 loader.initialize(); - loader.setPropertyValue("Filename", "../../../../Test/AutoTestData/emu00006473.nxs"); + loader.setPropertyValue("Filename", "emu00006473.nxs"); loader.setPropertyValue("OutputWorkspace", "EMU6473"); TS_ASSERT_THROWS_NOTHING( loader.execute() ); TS_ASSERT_EQUALS(loader.isExecuted(),true); diff --git a/Code/Mantid/Framework/Algorithms/test/PlotAsymmetryByLogValueTest.h b/Code/Mantid/Framework/Algorithms/test/PlotAsymmetryByLogValueTest.h index 18daeced51d..31e37b81fa2 100644 --- a/Code/Mantid/Framework/Algorithms/test/PlotAsymmetryByLogValueTest.h +++ b/Code/Mantid/Framework/Algorithms/test/PlotAsymmetryByLogValueTest.h @@ -20,7 +20,7 @@ class PlotAsymmetryByLogValueTest : public CxxTest::TestSuite public: PlotAsymmetryByLogValueTest() - :firstRun("../../../../Test/AutoTestData/MUSR00015189.nxs"),lastRun("../../../../Test/AutoTestData/MUSR00015199.nxs") + :firstRun("MUSR00015189.nxs"),lastRun("MUSR00015199.nxs") { } diff --git a/Code/Mantid/Framework/Algorithms/test/Q1DTest.h b/Code/Mantid/Framework/Algorithms/test/Q1DTest.h index 0f02cd3d658..0cd743b2180 100644 --- a/Code/Mantid/Framework/Algorithms/test/Q1DTest.h +++ b/Code/Mantid/Framework/Algorithms/test/Q1DTest.h @@ -37,7 +37,7 @@ public: { Mantid::DataHandling::LoadRaw3 loader; loader.initialize(); - loader.setPropertyValue("Filename","../../../../Test/AutoTestData/LOQ48127.raw"); + loader.setPropertyValue("Filename","LOQ48127.raw"); const std::string inputWS("wav"); loader.setPropertyValue("OutputWorkspace",inputWS); loader.setPropertyValue("SpectrumList","3"); diff --git a/Code/Mantid/Framework/Algorithms/test/Q1DWeightedTest.h b/Code/Mantid/Framework/Algorithms/test/Q1DWeightedTest.h index 09b6db1fdb9..f205af43326 100644 --- a/Code/Mantid/Framework/Algorithms/test/Q1DWeightedTest.h +++ b/Code/Mantid/Framework/Algorithms/test/Q1DWeightedTest.h @@ -39,7 +39,7 @@ public: { Mantid::DataHandling::LoadSpice2D loader; loader.initialize(); - loader.setPropertyValue("Filename","../../../../Test/AutoTestData/BioSANS_exp61_scan0004_0001.xml"); + loader.setPropertyValue("Filename","BioSANS_exp61_scan0004_0001.xml"); const std::string inputWS("wav"); loader.setPropertyValue("OutputWorkspace",inputWS); loader.execute(); diff --git a/Code/Mantid/Framework/Algorithms/test/QxyTest.h b/Code/Mantid/Framework/Algorithms/test/QxyTest.h index 4fc6bff780c..8e7f1d22ec0 100644 --- a/Code/Mantid/Framework/Algorithms/test/QxyTest.h +++ b/Code/Mantid/Framework/Algorithms/test/QxyTest.h @@ -37,7 +37,7 @@ public: { Mantid::DataHandling::LoadRaw2 loader; loader.initialize(); - loader.setPropertyValue("Filename","../../../../Test/AutoTestData/LOQ48098.raw"); + loader.setPropertyValue("Filename","LOQ48098.raw"); loader.setPropertyValue("OutputWorkspace",m_inputWS); loader.setPropertyValue("SpectrumMin","30"); loader.setPropertyValue("SpectrumMax","130"); diff --git a/Code/Mantid/Framework/Algorithms/test/RemoveBinsTest.h b/Code/Mantid/Framework/Algorithms/test/RemoveBinsTest.h index 7f763c04aae..397a13621dd 100644 --- a/Code/Mantid/Framework/Algorithms/test/RemoveBinsTest.h +++ b/Code/Mantid/Framework/Algorithms/test/RemoveBinsTest.h @@ -187,7 +187,7 @@ public: #ifndef _WIN64 Mantid::NeXus::LoadMuonNexus loader; loader.initialize(); - loader.setPropertyValue("Filename", "../../../../Test/AutoTestData/emu00006473.nxs"); + loader.setPropertyValue("Filename", "emu00006473.nxs"); loader.setPropertyValue("OutputWorkspace", "EMU6473"); loader.execute(); diff --git a/Code/Mantid/Framework/Algorithms/test/SofQWTest.h b/Code/Mantid/Framework/Algorithms/test/SofQWTest.h index d41c4487cf7..e69774422cd 100644 --- a/Code/Mantid/Framework/Algorithms/test/SofQWTest.h +++ b/Code/Mantid/Framework/Algorithms/test/SofQWTest.h @@ -39,7 +39,7 @@ public: Mantid::NeXus::LoadNexusProcessed loader; loader.initialize(); - loader.setProperty("Filename","../../../../Test/AutoTestData/IRS26173_ipg.nxs"); + loader.setProperty("Filename","IRS26173_ipg.nxs"); const std::string inputWS = "inputWS"; loader.setPropertyValue("OutputWorkspace",inputWS); loader.execute(); diff --git a/Code/Mantid/Framework/Algorithms/test/SolidAngleCorrectionTest.h b/Code/Mantid/Framework/Algorithms/test/SolidAngleCorrectionTest.h index 7ba9f25d6b9..618c656d68b 100644 --- a/Code/Mantid/Framework/Algorithms/test/SolidAngleCorrectionTest.h +++ b/Code/Mantid/Framework/Algorithms/test/SolidAngleCorrectionTest.h @@ -37,7 +37,7 @@ public: { Mantid::DataHandling::LoadSpice2D loader; loader.initialize(); - loader.setPropertyValue("Filename","../../../../Test/AutoTestData/BioSANS_exp61_scan0004_0001.xml"); + loader.setPropertyValue("Filename","BioSANS_exp61_scan0004_0001.xml"); const std::string inputWS("wav"); loader.setPropertyValue("OutputWorkspace",inputWS); loader.execute(); diff --git a/Code/Mantid/Framework/Algorithms/test/StripVanadiumPeaksTest.h b/Code/Mantid/Framework/Algorithms/test/StripVanadiumPeaksTest.h index a2c928c907c..26be7e79813 100644 --- a/Code/Mantid/Framework/Algorithms/test/StripVanadiumPeaksTest.h +++ b/Code/Mantid/Framework/Algorithms/test/StripVanadiumPeaksTest.h @@ -38,7 +38,7 @@ public: // Start by loading our NXS file IAlgorithm* loader = Mantid::API::FrameworkManager::Instance().createAlgorithm("LoadNexus"); - loader->setPropertyValue("Filename","../../../../Test/AutoTestData/PG3_733.nxs"); + loader->setPropertyValue("Filename","PG3_733.nxs"); loader->setPropertyValue("OutputWorkspace", inputWSName); loader->execute(); TS_ASSERT( loader->isExecuted()); diff --git a/Code/Mantid/Framework/Algorithms/test/SumRowColumnTest.h b/Code/Mantid/Framework/Algorithms/test/SumRowColumnTest.h index 3ac2ddbb4d3..2f16a578212 100644 --- a/Code/Mantid/Framework/Algorithms/test/SumRowColumnTest.h +++ b/Code/Mantid/Framework/Algorithms/test/SumRowColumnTest.h @@ -15,7 +15,7 @@ public: { Mantid::DataHandling::LoadRaw3 loader; loader.initialize(); - loader.setPropertyValue("Filename","../../../../Test/AutoTestData/LOQ48094.raw"); + loader.setPropertyValue("Filename","LOQ48094.raw"); loader.setPropertyValue("OutputWorkspace",inputWS); loader.setPropertyValue("SpectrumMin","3"); loader.setPropertyValue("SpectrumMax","16386"); diff --git a/Code/Mantid/Framework/Algorithms/test/SumSpectraTest.h b/Code/Mantid/Framework/Algorithms/test/SumSpectraTest.h index 47018888871..c081023ebf4 100644 --- a/Code/Mantid/Framework/Algorithms/test/SumSpectraTest.h +++ b/Code/Mantid/Framework/Algorithms/test/SumSpectraTest.h @@ -30,7 +30,7 @@ public: Mantid::DataHandling::LoadRaw3 loader; loader.initialize(); - loader.setPropertyValue("Filename","../../../../Test/AutoTestData/LOQ48127.raw"); + loader.setPropertyValue("Filename","LOQ48127.raw"); loader.setPropertyValue("OutputWorkspace",inputSpace); loader.execute(); diff --git a/Code/Mantid/Framework/Algorithms/test/TofCorrectionTest.h b/Code/Mantid/Framework/Algorithms/test/TofCorrectionTest.h index c52b2491a25..79450aeec9e 100644 --- a/Code/Mantid/Framework/Algorithms/test/TofCorrectionTest.h +++ b/Code/Mantid/Framework/Algorithms/test/TofCorrectionTest.h @@ -43,7 +43,7 @@ public: IAlgorithm* loader; loader = new Mantid::DataHandling::LoadRaw3; loader->initialize(); - loader->setPropertyValue("Filename", "../../../../Test/AutoTestData/TSC10076.raw"); + loader->setPropertyValue("Filename", "TSC10076.raw"); loader->setPropertyValue("OutputWorkspace", "tofcorrection_tsc_r"); loader->setPropertyValue("SpectrumMin", "13"); loader->setPropertyValue("SpectrumMax", "13"); diff --git a/Code/Mantid/Framework/Algorithms/test/TransposeTest.h b/Code/Mantid/Framework/Algorithms/test/TransposeTest.h index a54a60fd65e..771370b9917 100644 --- a/Code/Mantid/Framework/Algorithms/test/TransposeTest.h +++ b/Code/Mantid/Framework/Algorithms/test/TransposeTest.h @@ -43,7 +43,7 @@ public: IAlgorithm* loader; loader = new Mantid::DataHandling::LoadRaw; loader->initialize(); - loader->setPropertyValue("Filename", "../../../../Test/AutoTestData/IRS21360.raw"); + loader->setPropertyValue("Filename", "IRS21360.raw"); loader->setPropertyValue("OutputWorkspace", "transpose_irs_r"); loader->setPropertyValue("SpectrumMin", "3"); loader->setPropertyValue("SpectrumMax", "13"); diff --git a/Code/Mantid/Framework/Algorithms/test/UnGroupWorkspacesTest.h b/Code/Mantid/Framework/Algorithms/test/UnGroupWorkspacesTest.h index 52d0366bd9d..c43e297b2b7 100644 --- a/Code/Mantid/Framework/Algorithms/test/UnGroupWorkspacesTest.h +++ b/Code/Mantid/Framework/Algorithms/test/UnGroupWorkspacesTest.h @@ -49,7 +49,7 @@ public: { LoadRaw3 alg; alg.initialize(); - TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("FileName","../../../../Test/AutoTestData/EVS13895.raw")); + TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("FileName","EVS13895.raw")); TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("OutputWorkspace","EVS13895")); TS_ASSERT_THROWS_NOTHING( alg.execute()); TS_ASSERT( alg.isExecuted() ); @@ -81,7 +81,7 @@ public: { LoadRaw3 alg; alg.initialize(); - TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("FileName","../../../../Test/AutoTestData/LOQ48098.raw")); + TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("FileName","LOQ48098.raw")); TS_ASSERT_THROWS_NOTHING(alg.setPropertyValue("OutputWorkspace","LOQ48098")); TS_ASSERT_THROWS_NOTHING( alg.execute()); TS_ASSERT( alg.isExecuted() ); diff --git a/Code/Mantid/Framework/Algorithms/test/UnwrapTest.h b/Code/Mantid/Framework/Algorithms/test/UnwrapTest.h index 7a6f7558aa4..ce388c31a4d 100644 --- a/Code/Mantid/Framework/Algorithms/test/UnwrapTest.h +++ b/Code/Mantid/Framework/Algorithms/test/UnwrapTest.h @@ -54,7 +54,7 @@ public: { IAlgorithm* loader = new Mantid::DataHandling::LoadRaw2; loader->initialize(); - loader->setPropertyValue("Filename", "../../../../Test/AutoTestData/OSI11886.raw"); + loader->setPropertyValue("Filename", "OSI11886.raw"); std::string outputSpace = "toUnwrap"; loader->setPropertyValue("OutputWorkspace", outputSpace); diff --git a/Code/Mantid/Framework/Algorithms/test/WeightedMeanTest.h b/Code/Mantid/Framework/Algorithms/test/WeightedMeanTest.h index 82b041db868..7ce08fee536 100644 --- a/Code/Mantid/Framework/Algorithms/test/WeightedMeanTest.h +++ b/Code/Mantid/Framework/Algorithms/test/WeightedMeanTest.h @@ -38,7 +38,7 @@ public: Mantid::DataHandling::LoadRaw3 loader; loader.initialize(); - loader.setPropertyValue("Filename","../../../../Test/AutoTestData/OFFSPEC00004622.raw"); + loader.setPropertyValue("Filename","OFFSPEC00004622.raw"); loader.setPropertyValue("OutputWorkspace","first"); loader.setPropertyValue("SpectrumList","1"); loader.setPropertyValue("LoadLogFiles","0"); @@ -46,7 +46,7 @@ public: Mantid::DataHandling::LoadRaw3 loader2; loader2.initialize(); - loader2.setPropertyValue("Filename","../../../../Test/AutoTestData/OFFSPEC00004622.raw"); + loader2.setPropertyValue("Filename","OFFSPEC00004622.raw"); loader2.setPropertyValue("OutputWorkspace","second"); loader2.setPropertyValue("SpectrumList","2"); loader2.setPropertyValue("LoadLogFiles","0"); -- GitLab