Ejemplo n.º 1
0
    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()