def preLoopFunctions(self):
		self.dd = apDDprocess.initializeDDFrameprocess(self.params['sessionname'],self.params['wait'])
		self.dd.setUseGS(self.params['useGS'])
		self.dd.setRunDir(self.params['rundir'])
		self.dd.setTempDir(self.params['tempdir'])
		self.dd.setRawFrameType(self.getFrameType())
		self.dd.setUseGPUFlat(True)
		self.dd.setSquareOutputShape(self.params['square'])
		self.dd.setTrimingEdge(self.params['trim'])
		self.dd.setDoseFDriftCorrOptions(self.params)
		self.dd.setGPUid(self.params['gpuid'])
		# keepstack is resolved for various cases in conflict check.  There should be no ambiguity by now
		self.dd.setKeepStack(self.params['keepstack'])
		self.dd.setCycleReferenceChannels(self.params['cyclechannels'])
		
		if self.params['refimgid']:
			self.dd.setDefaultImageForReference(self.params['refimgid'])
		self.imageids = []
		if self.params['stackid']:
			# create a list of unaligned imageids from the particle stack
			imageids_from_stack = apStack.getImageIdsFromStack(self.params['stackid'])
			self.imageids = self.getUnAlignedImageIds(imageids_from_stack)
		# Optimize AppionLoop wait time for this since the processing now takes longer than
		# image acquisition
		self.setWaitSleepMin(0.4)
		self.setProcessBatchCount(1)
Ejemplo n.º 2
0
    def preLoopFunctions(self):
        self.dd = apDDprocess.initializeDDFrameprocess(
            self.params['sessionname'], self.params['wait'])
        self.dd.setRunDir(self.params['rundir'])
        self.dd.setDoseFDriftCorrOptions(self.params)
        self.dd.setGPUid(self.params['gpuid'])
        # keepstack is resolved for various cases in conflict check.  There should be no ambiguity by now
        self.dd.setKeepStack(self.params['keepstack'])

        self.gain_corrected_ddproc = None
        self.imageids = []
        if self.params['stackid']:
            # create a list of unaligned imageids from the particle stack
            imageids_from_stack = apStack.getImageIdsFromStack(
                self.params['stackid'])
            self.imageids = self.getUnAlignedImageIds(imageids_from_stack)
            if not self.params['ddstack']:
                print 'This does not work yet.  Need to create gain-corrected-ddstack first'
        if self.params['ddstack']:
            self.gain_corrected_ddproc = apDDprocess.DDStackProcessing()
            self.gain_corrected_ddproc.setDDStackRun(
                ddstackrunid=self.params['ddstack'])
        # Optimize AppionLoop wait time for this since the processing now takes longer than
        # image acquisition
        self.setWaitSleepMin(0.4)
        self.setProcessBatchCount(1)
 def preLoopFunctions(self):
         self.dd = apDDprocess.initializeDDFrameprocess(self.params['sessionname'],self.params['wait'])
         self.dd.setUseGS(self.params['useGS'])
         self.dd.setRunDir(self.params['rundir'])
         self.dd.setTempDir(self.params['tempdir'])
         self.dd.setRawFrameType(self.getFrameType())
         self.dd.setUseGPUFlat(self.params['gpuflat'])
         self.dd.setGPUid(self.params['gpuid'])
         # keepstack is resolved for various cases in conflict check.  There should be no ambiguity by now
         self.dd.setKeepStack(self.params['keepstack'])
         self.dd.setCycleReferenceChannels(self.params['cyclechannels'])
         
         if self.params['refimgid']:
                 self.dd.setDefaultImageForReference(self.params['refimgid'])
         self.imageids = []
         if self.params['stackid']:
                 self.imageids = apStack.getImageIdsFromStack(self.params['stackid'])
         # Optimize AppionLoop wait time for this since the processing now takes longer than
         # image acquisition
         self.setWaitSleepMin(0.4)
         self.setProcessBatchCount(1)
    def preLoopFunctions(self):
        self.dd = apDDprocess.initializeDDFrameprocess(self.params["sessionname"], self.params["wait"])
        self.dd.setRunDir(self.params["rundir"])
        self.dd.setDoseFDriftCorrOptions(self.params)
        self.dd.setGPUid(self.params["gpuid"])
        # keepstack is resolved for various cases in conflict check.  There should be no ambiguity by now
        self.dd.setKeepStack(self.params["keepstack"])

        self.gain_corrected_ddproc = None
        self.imageids = []
        if self.params["stackid"]:
            # create a list of unaligned imageids from the particle stack
            imageids_from_stack = apStack.getImageIdsFromStack(self.params["stackid"])
            self.imageids = self.getUnAlignedImageIds(imageids_from_stack)
            if not self.params["ddstack"]:
                print "This does not work yet.  Need to create gain-corrected-ddstack first"
        if self.params["ddstack"]:
            self.gain_corrected_ddproc = apDDprocess.DDStackProcessing()
            self.gain_corrected_ddproc.setDDStackRun(ddstackrunid=self.params["ddstack"])
            # Optimize AppionLoop wait time for this since the processing now takes longer than
            # image acquisition
        self.setWaitSleepMin(0.4)
        self.setProcessBatchCount(1)