def runTest(self):
        UseCompatibilityMode()
        LARMOR()
        Set1D()
        Detector("DetectorBench")
        MaskFile(
            'USER_LARMOR_151B_LarmorTeam_80tubes_BenchRot1p4_M4_r3699.txt')
        Gravity(True)
        AddRuns(('13065', '13065'), 'LARMOR', 'nxs', lowMem=True)

        AssignSample('13065-add.nxs')
        WavRangeReduction(2, 4, DefaultTrans)

        # Clean up
        for element in AnalysisDataService.getObjectNames():
            if AnalysisDataService.doesExist(
                    element) and element != "13065p1rear_1D_2.0_4.0":
                AnalysisDataService.remove(element)

        paths = [
            os.path.join(config['defaultsave.directory'],
                         'LARMOR00013065-add.nxs'),
            os.path.join(config['defaultsave.directory'], 'SANS2D00013065.log')
        ]  # noqa
        for path in paths:
            if os.path.exists(path):
                os.remove(path)
示例#2
0
 def runTest(self):
     LARMOR()
     Set1D()
     Detector("DetectorBench")
     MaskFile('USER_Larmor_163F_HePATest_r13038.txt')
     AssignSample('13038')
     # Different in V2. We need to call the reduction in order to load the data. Hence we add the
     # WaveRangeReduction here.
     WavRangeReduction()
     base_name = "13038_sans_nxs_"
     number_of_workspaces = 4
     self._check_if_all_multi_period_workspaces_have_the_same_position(
         base_name, number_of_workspaces)
     self._clean_up(base_name, number_of_workspaces)