def test_simple(self):
        cal_ws = IndirectCalibration(
            InputFiles="IRS38633.raw", DetectorRange=[3, 53], PeakRange=[62000, 65000], BackgroundRange=[59000, 61000]
        )

        self.assertEqual(cal_ws.getNumberHistograms(), 51)
        self.assertEqual(cal_ws.blocksize(), 1)
    def test_simple(self):
        cal_ws = IndirectCalibration(InputFiles='IRS38633.raw',
                                     DetectorRange=[3, 53],
                                     PeakRange=[62000, 65000],
                                     BackgroundRange=[59000, 61000])

        self.assertEqual(cal_ws.getNumberHistograms(), 51)
        self.assertEqual(cal_ws.blocksize(), 1)
    def test_logs(self):
        cal_ws = IndirectCalibration(InputFiles='IRS38633.raw',
                                            DetectorRange=[3,53],
                                            PeakRange=[62000,65000],
                                            BackgroundRange=[59000,61000],
                                            LoadLogFiles=True)

        self.assertEqual(cal_ws.getNumberHistograms(), 51)
        self.assertEqual(cal_ws.blocksize(), 1)
        
        self.assertEqual(cal_ws.run().getProperty('current_period').value, 1)
    def test_logs(self):
        cal_ws = IndirectCalibration(InputFiles='IRS38633.raw',
                                     DetectorRange=[3, 53],
                                     PeakRange=[62000, 65000],
                                     BackgroundRange=[59000, 61000],
                                     LoadLogFiles=True)

        self.assertEqual(cal_ws.getNumberHistograms(), 51)
        self.assertEqual(cal_ws.blocksize(), 1)

        self.assertEqual(cal_ws.run().getProperty('current_period').value, 1)