def runTest(self): UseCompatibilityMode() SANS2DTUBES() MaskFile('USER_SANS2D_143ZC_2p4_4m_M4_Knowles_12mm.txt') SetDetectorOffsets('REAR', -16.0, 58.0, 0.0, 0.0, 0.0, 0.0) SetDetectorOffsets('FRONT', -44.0, -20.0, 47.0, 0.0, 1.0, 1.0) Gravity(False) Set1D() # add files (SAMPLE and CAN) AddRuns(runs=('28827', '28797'), instrument='SANS2DTUBES', defType='.nxs', rawTypes=('.add', '.raw', '.s*'), lowMem=False, saveAsEvent=True, isOverlay=True) AddRuns(('28823', '28793'), 'SANS2DTUBES', defType='.nxs', rawTypes=('.add', '.raw', '.s*'), lowMem=False, saveAsEvent=True, isOverlay=True) AssignSample(r'SANS2D00028797-add.nxs', reload=True) AssignCan(r'SANS2D00028793-add.nxs', reload=True) TransmissionSample(r'SANS2D00028808.nxs', r'SANS2D00028784.nxs') TransmissionCan(r'SANS2D00028823.nxs', r'SANS2D00028784.nxs') WavRangeReduction()
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)
def runTest(self): UseCompatibilityMode() SANS2D() Set1D() Detector("rear-detector") MaskFile('MASKSANS2Doptions.091A') Gravity(True) AddRuns(('5512', '5512'), 'SANS2D', 'nxs', lowMem=True) # one period of a multi-period Nexus file AssignSample('5512-add.nxs', period=7) WavRangeReduction(2, 4, DefaultTrans) paths = [os.path.join(config['defaultsave.directory'], 'SANS2D00005512-add.nxs'), os.path.join(config['defaultsave.directory'], 'SANS2D00005512.log')] for path in paths: if os.path.exists(path): os.remove(path)