def maxLike(self, substackname, lowpass=10, highpass=2000, numref=3, bin=2, maxiter=12): runnum = apAlignment.getNumAlignRunsFromSession(self.sessionname) maxlikename = "maxlike%d-%s"%(runnum+1, self.timestamp) stackid = apStack.getStackIdFromSubStackName(substackname, self.sessionname) if not stackid: apDisplay.printError("Failed to find stack %s for session %s during maxLikeAlignment test."%(substackname, self.sessionname)) print (self.params['projectid'], stackid, 10, 2000, 3, 1, 12, 'max like with test suite application') script = os.path.join(self.appiondir, "bin", "maxlikeAlignment.py") params = (" --runname=%s --projectid=%d --stack=%d --lowpass=%d --highpass=%d --num-ref=%d --bin=%d --savemem --converge=slow --mirror --fast --fast-mode=narrow --max-iter=%d --description='%s'" %(maxlikename, self.params['projectid'], stackid, lowpass, highpass, numref, bin, maxiter, 'max like with test suite application')) # Add appion flags if self.params['commit'] is True: params += " --commit " else: params += " --no-commit " self.runCommand(script+" "+params) return maxlikename
def maxLike(self, substackname): runnum = apAlignment.getNumAlignRunsFromSession(self.sessionname) maxlikename = "maxlike%d-%s" % (runnum + 1, self.timestamp) stackid = apStack.getStackIdFromSubStackName(substackname, self.sessionname) print (self.params["projectid"], stackid, 10, 2000, 3, 1, 12, "max like with test suite application") script = os.path.join(self.appiondir, "bin", "maxlikeAlignment.py") params = ( " --runname=%s --projectid=%d --stack=%d --lowpass=%d --highpass=%d --num-ref=%d --bin=%d --savemem --converge=slow --mirror --fast --fast-mode=narrow --max-iter=%d --description='%s'" % ( maxlikename, self.params["projectid"], stackid, 10, 2000, 3, 2, 12, "max like with test suite application", ) ) if self.params["commit"] is True: params += " --commit " else: params += " --no-commit " self.runCommand(script + " " + params) return maxlikename
def maxLike(self, substackname): runnum = apAlignment.getNumAlignRunsFromSession(self.sessionname) maxlikename = "maxlike%d-%s"%(runnum+1, self.timestamp) stackid = apStack.getStackIdFromSubStackName(substackname, self.sessionname) print (self.params['projectid'], stackid, 10, 2000, 3, 1, 12, 'max like with test suite application') script = os.path.join(self.appiondir, "bin", "maxlikeAlignment.py") params = (" --runname=%s --projectid=%d --stack=%d --lowpass=%d --highpass=%d --num-ref=%d --bin=%d --savemem --converge=slow --mirror --fast --fast-mode=narrow --max-iter=%d --description='%s'" %(maxlikename, self.params['projectid'], stackid, 10, 2000, 3, 2, 12, 'max like with test suite application')) if self.params['commit'] is True: params += " --commit " else: params += " --no-commit " self.runCommand(script+" "+params) return maxlikename