Esempio n. 1
0
 def test_multi_period_loader_list(self):
     out8 = LoadAndMerge(Filename='MUSR00015196,00015197.nxs')
     self.assertTrue(out8)
     self.assertTrue(isinstance(out8, WorkspaceGroup))
     self.assertEqual(out8.getNumberOfEntries(), 4)
     self.assertEqual(out8.getItem(0).name(), 'MUSR00015196_1')
     self.assertEqual(out8.getItem(1).name(), 'MUSR00015196_2')
     self.assertEqual(out8.getItem(2).name(), 'MUSR00015197_1')
     self.assertEqual(out8.getItem(3).name(), 'MUSR00015197_2')
Esempio n. 2
0
 def test_non_ill_load(self):
     out7 = LoadAndMerge(Filename='IRS26173,26174.RAW')
     self.assertTrue(out7)
     self.assertTrue(isinstance(out7, WorkspaceGroup))
     self.assertEqual(out7.getNumberOfEntries(), 2)
     self.assertTrue(isinstance(out7.getItem(0), MatrixWorkspace))
     self.assertTrue(isinstance(out7.getItem(1), MatrixWorkspace))
     self.assertEqual(out7.getItem(0).name(), 'IRS26173')
     self.assertEqual(out7.getItem(1).name(), 'IRS26174')
Esempio n. 3
0
 def test_non_ill_load(self):
     out7 = LoadAndMerge(Filename='IRS26173,26174.RAW')
     self.assertTrue(out7)
     self.assertTrue(isinstance(out7, WorkspaceGroup))
     self.assertEquals(out7.getNumberOfEntries(), 2)
     self.assertTrue(isinstance(out7.getItem(0), MatrixWorkspace))
     self.assertTrue(isinstance(out7.getItem(1), MatrixWorkspace))
     self.assertEquals(out7.getItem(0).name(),'IRS26173')
     self.assertEquals(out7.getItem(1).name(),'IRS26174')
     mtd.clear()
Esempio n. 4
0
 def test_multi_period_loader_list(self):
     out8 = LoadAndMerge(Filename='MUSR00015196,00015197.nxs')
     self.assertTrue(out8)
     self.assertTrue(isinstance(out8, WorkspaceGroup))
     self.assertEquals(out8.getNumberOfEntries(), 4)
     self.assertEquals(out8.getItem(0).name(),'MUSR00015196_1')
     self.assertEquals(out8.getItem(1).name(),'MUSR00015196_2')
     self.assertEquals(out8.getItem(2).name(),'MUSR00015197_1')
     self.assertEquals(out8.getItem(3).name(),'MUSR00015197_2')
     mtd.clear()
Esempio n. 5
0
 def test_many_runs_mixed(self):
     out4 = LoadAndMerge(Filename='170257+170258,170300+170302',LoaderName='LoadILLIndirect')
     self.assertTrue(out4)
     self.assertEqual(out4.name(), 'out4')
     self.assertTrue(isinstance(out4, WorkspaceGroup))
     self.assertEqual(out4.getNumberOfEntries(), 2)
     self.assertTrue(isinstance(out4.getItem(0), MatrixWorkspace))
     self.assertTrue(isinstance(out4.getItem(1), MatrixWorkspace))
     self.assertEqual(out4.getItem(0).name(),'170257_170258')
     self.assertEqual(out4.getItem(1).name(),'170300_170302')
     mtd.clear()
Esempio n. 6
0
 def test_many_runs_listed(self):
     out3 = LoadAndMerge(Filename='170257,170258',LoaderName='LoadILLIndirect')
     self.assertTrue(out3)
     self.assertEqual(out3.name(), 'out3')
     self.assertTrue(isinstance(out3, WorkspaceGroup))
     self.assertEqual(out3.getNumberOfEntries(), 2)
     self.assertTrue(isinstance(out3.getItem(0), MatrixWorkspace))
     self.assertTrue(isinstance(out3.getItem(1), MatrixWorkspace))
     self.assertEqual(out3.getItem(0).name(),'170257')
     self.assertEqual(out3.getItem(1).name(),'170258')
     mtd.clear()
Esempio n. 7
0
 def test_many_runs_mixed(self):
     out4 = LoadAndMerge(Filename='170257+170258,170300+170302',LoaderName='LoadILLIndirect')
     self.assertTrue(out4)
     self.assertEquals(out4.name(), 'out4')
     self.assertTrue(isinstance(out4, WorkspaceGroup))
     self.assertEquals(out4.getNumberOfEntries(), 2)
     self.assertTrue(isinstance(out4.getItem(0), MatrixWorkspace))
     self.assertTrue(isinstance(out4.getItem(1), MatrixWorkspace))
     self.assertEquals(out4.getItem(0).name(),'170257_170258')
     self.assertEquals(out4.getItem(1).name(),'170300_170302')
     mtd.clear()
Esempio n. 8
0
 def test_many_runs_listed(self):
     out3 = LoadAndMerge(Filename='170257,170258',LoaderName='LoadILLIndirect')
     self.assertTrue(out3)
     self.assertEquals(out3.name(), 'out3')
     self.assertTrue(isinstance(out3, WorkspaceGroup))
     self.assertEquals(out3.getNumberOfEntries(), 2)
     self.assertTrue(isinstance(out3.getItem(0), MatrixWorkspace))
     self.assertTrue(isinstance(out3.getItem(1), MatrixWorkspace))
     self.assertEquals(out3.getItem(0).name(),'170257')
     self.assertEquals(out3.getItem(1).name(),'170258')
     mtd.clear()