def runTest(self): UseCompatibilityMode() LOQ() Detector("main-detector-bank") csv_file = FileFinder.getFullPath('batch_input.csv') Set1D() MaskFile('MASK.094AA') Gravity(True) BatchReduce(csv_file, 'raw', plotresults=False, saveAlgs={ 'SaveCanSAS1D': 'xml', 'SaveNexus': 'nxs' }) LoadNexus(Filename='54433sans.nxs', OutputWorkspace='result') Plus(LHSWorkspace='result', RHSWorkspace='99630sanotrans', OutputWorkspace='result') os.remove( os.path.join(config['defaultsave.directory'], '54433sans.nxs')) os.remove( os.path.join(config['defaultsave.directory'], '99630sanotrans.nxs')) os.remove( os.path.join(config['defaultsave.directory'], '54433sans.xml')) os.remove( os.path.join(config['defaultsave.directory'], '99630sanotrans.xml'))
def runTest(self): UseCompatibilityMode() LOQ() MaskFile('MaskLOQData.txt') BatchReduce('loq_batch_mode_reduction.csv', '.nxs', combineDet='merged', saveAlgs={})
def runTest(self): UseCompatibilityMode() LOQ() Set2D() Detector("main-detector-bank") MaskFile('MASK_094AA.toml') # apply some small artificial shift SetDetectorOffsets('REAR', -1.0, 1.0, 0.0, 0.0, 0.0, 0.0) Gravity(True) AssignSample('99630.RAW') # They file seems to be named wrongly. AssignCan('99631.RAW') # The file seems to be named wrongly. WavRangeReduction(None, None, False)
def runTest(self): UseCompatibilityMode() LOQ() Set1D() Detector("rear-detector") MaskFile('MASK.094AA') Gravity(False) SetCentre(324.765, 327.670) AssignSample('54431.raw') TransmissionSample('54435.raw', '54433.raw') AssignCan('54432.raw') TransmissionCan('54434.raw', '54433.raw') WavRangeReduction(3, 9, DefaultTrans)
def runTest(self): UseCompatibilityMode() LOQ() MaskFile(MASKFILE) BatchReduce(BATCHFILE, '.nxs', combineDet='merged', saveAlgs={})
def runTest(self): UseCompatibilityMode() LOQ() csv_file = FileFinder.getFullPath("toml_v1_file_m4.csv") BatchReduce(csv_file, 'raw')