Beispiel #1
0
    def onInit(self):
        if 'sessionname' not in self.params.keys():
            self.params['sessionname'] = leginondata.SessionData(
            ).direct_query(self.params['expid'])['name']
        self.dd = apDDprocess.initializeDDFrameprocess(
            self.params['sessionname'], self.params['wait'])
        self.dd.setRunDir(self.params['rundir'])
        # The gain/dark corrected ddstack is unlikely to be on local disk
        if 'tempdir' not in self.params.keys():
            self.dd.setTempDir()
        else:
            self.dd.setTempDir(self.params['tempdir'])
        self.dd.setNewBinning(self.rundata['params']['bin'])

        # Get the unfinished ddstack run parameters to apply them here
        jobdata = apDatabase.getJobDataFromPathAndType(
            self.rundata['path']['path'], 'makeddrawframestack')
        self.ddstack_script_params = apScriptLog.getScriptParamValuesFromRunname(
            self.rundata['runname'], self.rundata['path'], jobdata)
        if 'no-keepstack' in self.ddstack_script_params.keys():
            self.dd.setKeepStack(False)
        self.dd.setDoseFDriftCorrOptions(self.ddstack_script_params)
        # Give an unique lockname
        self.setLockname('ddalign')
        self.success_count = 0
	def getRunData(self):
		### setup refinement run
		jobdata = apDatabase.getJobDataFromPathAndType(self.params['rundir'], "runfrealign")
		runq = appiondata.ApRefineRunData()
		runq['runname'] = self.params['runname']
		runq['package'] = "Frealign"
		runq['description'] = self.params['description']
		runq['hidden'] = False
		runq['num_iter'] = self.numiter
		runq['stack'] = apStack.getOnlyStackData(self.params['stackid'])
		runq['initialModel'] = apModel.getModelFromId(self.params['modelid'])
		runq['path'] = appiondata.ApPathData(path=os.path.abspath(self.params['rundir']))
		runq['job'] = jobdata
		return runq
Beispiel #3
0
	def getRunData(self):
		### setup refinement run
		jobdata = apDatabase.getJobDataFromPathAndType(self.params['rundir'], "runfrealign")
		runq = appiondata.ApRefineRunData()
		runq['runname'] = self.params['runname']
		runq['package'] = "Frealign"
		runq['description'] = self.params['description']
		runq['hidden'] = False
		runq['num_iter'] = self.numiter
		runq['stack'] = apStack.getOnlyStackData(self.params['stackid'])
		runq['initialModel'] = apModel.getModelFromId(self.params['modelid'])
		runq['path'] = appiondata.ApPathData(path=os.path.abspath(self.params['rundir']))
		runq['job'] = jobdata
		return runq
 def getRunData(self):
     ### setup refinement run
     jobdata = apDatabase.getJobDataFromPathAndType(self.params["rundir"], "runfrealign")
     runq = appiondata.ApRefineRunData()
     runq["runname"] = self.params["runname"]
     runq["package"] = "Frealign"
     runq["description"] = self.params["description"]
     runq["hidden"] = False
     runq["num_iter"] = self.numiter
     runq["stack"] = apStack.getOnlyStackData(self.params["stackid"])
     runq["initialModel"] = apModel.getModelFromId(self.params["modelid"])
     runq["path"] = appiondata.ApPathData(path=os.path.abspath(self.params["rundir"]))
     runq["job"] = jobdata
     return runq
 def onInit(self):
         if 'sessionname' not in self.params.keys():
                 self.params['sessionname'] = leginondata.SessionData().direct_query(self.params['expid'])['name']
         self.dd = apDDprocess.initializeDDFrameprocess(self.params['sessionname'],self.params['wait'])
         self.dd.setRunDir(self.params['rundir'])
         # The gain/dark corrected ddstack is unlikely to be on local disk
         if 'tempdir' not in self.params.keys():
                 self.dd.setTempDir()
         else:
                 self.dd.setTempDir(self.params['tempdir'])
         self.dd.setNewBinning(self.rundata['params']['bin'])
 
         # Get the unfinished ddstack run parameters to apply them here
         jobdata = apDatabase.getJobDataFromPathAndType(self.rundata['path']['path'], 'makeddrawframestack')
         self.ddstack_script_params = apScriptLog.getScriptParamValuesFromRunname(self.rundata['runname'],self.rundata['path'],jobdata)
         if 'no-keepstack' in self.ddstack_script_params.keys():
                 self.dd.setKeepStack(False)
         # Give an unique lockname
         self.setLockname('ddalign')
         self.success_count = 0