示例#1
0
 def test_concatenate_output(self):
     out = LoadAndMerge(Filename='010444:010446',
                        OutputBehaviour='Concatenate')
     self.assertTrue(out)
     self.assertEqual(out.name(), 'out')
     self.assertTrue(isinstance(out, MatrixWorkspace))
     self.assertEqual(out.blocksize(), 3)
     self.assertEqual(out.readX(0)[0], 0)
     self.assertEqual(out.readX(0)[1], 1)
     self.assertEqual(out.readX(0)[2], 2)
示例#2
0
 def test_concatenate_output_with_log(self):
     out = LoadAndMerge(Filename='010444:010446',
                        OutputBehaviour='Concatenate',
                        SampleLogAsXAxis='sample.temperature')
     self.assertTrue(out)
     self.assertEqual(out.name(), 'out')
     self.assertTrue(isinstance(out, MatrixWorkspace))
     self.assertEqual(out.blocksize(), 3)
     self.assertAlmostEqual(out.readX(0)[0], 297.6, 1)
     self.assertAlmostEqual(out.readX(0)[1], 297.7, 1)
     self.assertAlmostEqual(out.readX(0)[2], 297.7, 1)