示例#1
0
 def test_MSDFit(self):
     EnergyWindowScan(InputFiles="IRS26176.RAW", Instrument='IRIS', Analyser='graphite',
                      Reflection='002', SpectraRange='3, 50', ElasticRange='-0.5, 0',
                      InelasticRange='0, 0.5', GroupingMethod='Individual', MSDFit=True)
     scan_ws = mtd['Scan_msd_fit']
     self.assertEqual(round(scan_ws[0].readY(0)[0], 7), 0.0844171)
     self.assertEqual(round(scan_ws[0].readY(0)[1], 7), 0.0963181)
示例#2
0
 def test_IRIS(self):
     EnergyWindowScan(InputFiles="IRS26176.RAW, IRS26173.RAW", Instrument='IRIS', Analyser='graphite',
                      Reflection='002', SpectraRange='3, 50', ElasticRange='-0.5, 0',
                      InelasticRange='0, 0.5', GroupingMethod='All')
     scan_ws = mtd['Scan_eisf']
     self.assertEqual(round(scan_ws.readY(0)[0], 7), 0.9737326)
     self.assertEqual(round(scan_ws.readY(1)[0], 7), 1.0528091)
 def test_MSDFit(self):
     EnergyWindowScan(InputFiles="IRS26176.RAW", Instrument='IRIS', Analyser='graphite',
                      Reflection='002', SpectraRange='3, 50', ElasticRange='-0.5, 0',
                      InelasticRange='0, 0.5', GroupingMethod='Individual', MSDFit=True)
     scan_ws = mtd['Scan_el_eq2_0_Workspace']
     self.assertEqual(round(scan_ws.readY(0)[0], 7), -2.4719849)
     self.assertEqual(round(scan_ws.readY(0)[1], 7), -2.3400994)
    def test_OSIRIS(self):
        EnergyWindowScan(InputFiles="osi89757.raw", Instrument='OSIRIS', Analyser='graphite',
                         Reflection='002', SpectraRange='963, 1004', ElasticRange='-1.0, 0',
                         InelasticRange='0, 1.5', GroupingMethod='All')

        self.assertEqual(round(mtd['Scan_el_eq1'].readY(0)[0], 7), 0)
        self.assertEqual(round(mtd['Scan_inel_eq2'].readY(0)[0], 7), -6.8454638)
 def test_IRIS(self):
     EnergyWindowScan(InputFiles="IRS26176.RAW, IRS26173.RAW",
                      Instrument='IRIS',
                      Analyser='graphite',
                      Reflection='002',
                      SpectraRange='3, 50',
                      ElasticRange='-0.5, 0',
                      InelasticRange='0, 0.5',
                      TotalRange='-0.5,0.5')
     scan_ws = mtd['Scan_eisf']
     self.assertEqual(round(scan_ws.readY(0)[0], 7), 0.5091999)
     self.assertEqual(round(scan_ws.readY(1)[0], 7), 0.5047055)
    def setUp(self):
        EnergyWindowScan(InputFiles='OSIRIS92762',
                         Instrument='OSIRIS',
                         Analyser='graphite',
                         Reflection='002',
                         SpectraRange='963,980',
                         ElasticRange='-0.02,0.02',
                         InelasticRange='0.4,0.5',
                         TotalRange='-0.5,0.5',
                         ReducedWorkspace='__reduced_group',
                         ScanWorkspace='__scan_workspace')

        self._red_name = 'osiris92762_graphite002_red'
        self._output_name = 'osiris92762_graphite002_two_peak_fit'

        self._x_min = -0.5
        self._x_max = 0.5

        self._execute_IndirectTwoPeakFit()