def runTest(self): #here we are testing the LOQ setup ici.LOQ() #rear detector ici.Detector("main-detector-bank") #test batch mode, although only the analysis from the last line is checked # Find the file , this should really be in the BatchReduce reduction step f = open(self.csv_file, 'w') print >> f, "sample_sans,99630-add,output_as, %s" % self.output_file f.close() runnum = '99630' sansadd.add_runs((runnum, runnum), 'LOQ', '.RAW') ici.Set1D() ici.MaskFile('MASK.094AA') batch.BatchReduce(self.csv_file, 'nxs', plotresults=False, saveAlgs={'SaveNexus': 'nxs'}) print ' reduction without' ici._refresh_singleton() ici.LOQ() ici.Detector("main-detector-bank") ici.Set1D() ici.MaskFile('MASK.094AA') LOQ99630 = Load(runnum) LOQ99630 += LOQ99630 ici.AssignSample(LOQ99630, reload=False) self.result = ici.WavRangeReduction()
def runTest(self): import SANSBatchMode as batch i.LOQ() i.MaskFile(MASKFILE) fit_settings = batch.BatchReduce(BATCHFILE, '.nxs', combineDet='merged', saveAlgs={})
def runTest(self): import SANSBatchMode as batch i.SANS2D() i.MaskFile(MASKFILE) i.SetEventSlices("0.0-451, 5-10") fit_settings = batch.BatchReduce(BATCHFILE, '.nxs', saveAlgs={}, combineDet='rear')
def runTest(self): self.initialization() self.checkFirstPart() import SANSBatchMode as batch self.applyGUISettings() fit_settings={'scale':1.0,'shift':0.0} fit_settings = batch.BatchReduce(BATCHFILE,'.nxs', saveAlgs={}, reducer=i.ReductionSingleton().reference(),combineDet='rear') self.checkFittingSettings(fit_settings)
def runTest(self): self.initialization() self.checkFirstPart() import SANSBatchMode as batch self.applyGUISettings() batch_path = FileFinder.getFullPath('sans2d_reduction_gui_batch.csv') fit_settings = batch.BatchReduce( batch_path, '.nxs', saveAlgs={}, reducer=i.ReductionSingleton().reference(), combineDet='rear') self.checkFittingSettings(fit_settings)
def runTest(self): import SANSBatchMode as batch i.SANS2D() i.MaskFile(MASKFILE) batch.BatchReduce(BATCHFILE, '.nxs', combineDet='rear')
def runTest(self): import SANSBatchMode as batch i.SANS2D() i.MaskFile('MaskSANS2DReductionGUI.txt') batch_file = FileFinder.getFullPath('sans2d_reduction_gui_batch.csv') batch.BatchReduce(batch_file, '.nxs', combineDet='rear')
def runTest(self): import SANSBatchMode as batch i.LOQ() i.MaskFile('MaskLOQData.txt') batch_file = FileFinder.getFullPath('loq_batch_mode_reduction.csv') batch.BatchReduce(batch_file, '.nxs', combineDet='merged', saveAlgs={})