def test_loader_option(self): out6 = LoadAndMerge(Filename='967101',LoaderName='LoadILLDiffraction', LoaderVersion=1,LoaderOptions=dict({'DataType':'Raw'})) self.assertTrue(out6) self.assertEquals(out6.getName(), 'out6') self.assertTrue(isinstance(out6, MatrixWorkspace)) mtd.clear()
def test_many_runs_summed(self): out2 = LoadAndMerge(Filename='170257+170258', LoaderName='LoadILLIndirect') self.assertTrue(out2) self.assertEquals(out2.getName(), 'out2') self.assertTrue(isinstance(out2, MatrixWorkspace)) mtd.clear()
def test_loader_option(self): out6 = LoadAndMerge(Filename='967101', LoaderName='LoadILLDiffraction', LoaderVersion=1, LoaderOptions=dict({'DataType': 'Raw'})) self.assertTrue(out6) self.assertEquals(out6.getName(), 'out6') self.assertTrue(isinstance(out6, MatrixWorkspace)) mtd.clear()
def test_specific_loader(self): out5 = LoadAndMerge( Filename='170257', LoaderName='LoadILLIndirect', ) self.assertTrue(out5) self.assertEquals(out5.getName(), 'out5') self.assertTrue(isinstance(out5, MatrixWorkspace)) mtd.clear()
def test_many_runs_mixed(self): out4 = LoadAndMerge(Filename='170257+170258,170300+170302',LoaderName='LoadILLIndirect') self.assertTrue(out4) self.assertEquals(out4.getName(), '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).getName(),'170257_170258') self.assertEquals(out4.getItem(1).getName(),'170300_170302') mtd.clear()
def test_many_runs_listed(self): out3 = LoadAndMerge(Filename='170257,170258',LoaderName='LoadILLIndirect') self.assertTrue(out3) self.assertEquals(out3.getName(), '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).getName(),'170257') self.assertEquals(out3.getItem(1).getName(),'170258') mtd.clear()
def test_many_runs_mixed(self): out4 = LoadAndMerge(Filename='170257+170258,170300+170302', LoaderName='LoadILLIndirect') self.assertTrue(out4) self.assertEquals(out4.getName(), '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).getName(), '170257_170258') self.assertEquals(out4.getItem(1).getName(), '170300_170302') mtd.clear()
def test_many_runs_listed(self): out3 = LoadAndMerge(Filename='170257,170258', LoaderName='LoadILLIndirect') self.assertTrue(out3) self.assertEquals(out3.getName(), '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).getName(), '170257') self.assertEquals(out3.getItem(1).getName(), '170258') mtd.clear()
def test_specific_loader(self): out5 = LoadAndMerge(Filename='170257',LoaderName='LoadILLIndirect',) self.assertTrue(out5) self.assertEquals(out5.getName(), 'out5') self.assertTrue(isinstance(out5, MatrixWorkspace)) mtd.clear()
def test_many_runs_summed(self): out2 = LoadAndMerge(Filename='170257+170258',LoaderName='LoadILLIndirect') self.assertTrue(out2) self.assertEquals(out2.getName(), 'out2') self.assertTrue(isinstance(out2, MatrixWorkspace)) mtd.clear()
def test_single_run_load(self): out1 = LoadAndMerge(Filename='170257') self.assertTrue(out1) self.assertEquals(out1.getName(), 'out1') self.assertTrue(isinstance(out1, MatrixWorkspace)) mtd.clear()
def test_single_run_load(self): out1 = LoadAndMerge(Filename='170257') self.assertTrue(out1) self.assertEquals(out1.getName(), 'out1') self.assertTrue(isinstance(out1, MatrixWorkspace)) mtd.clear()