def start(self): # config file for multiple job submission self.configfile = apConfig.getAppionConfigFile() # make necessary directories if not os.path.exists(os.path.join(self.params['rundir'], "inputs")): os.makedirs(os.path.join(self.params['rundir'], "inputs")) if not os.path.exists(os.path.join(self.params['rundir'], "Particles")): os.makedirs(os.path.join(self.params['rundir'], "Particles")) moviedir = os.path.join(self.params['rundir'], "movies") if not os.path.exists(moviedir): os.mkdir(moviedir) os.system("ln -s %s/*st.mrc %s" % (self.ddstackpath, moviedir)) # write particle coordinate files self.write_inputs(self.stackparts) # submission agent object a = apParallelTasks.Agent(self.configfile) for i in range(len(self.joblist)): jobfile = 'align_polish_parts_%d' % i task = self.joblist[i] a.Main(jobfile, [task]) # Clean up apDisplay.printMsg("deleting temporary processing files") # Upload results # if self.params['commit'] is True: # apStack.commitPolishedStack(self.params, oldstackparts, newname='start.hed') time.sleep(1) return
def start(self): # config file for multiple job submission self.configfile = apConfig.getAppionConfigFile() # make necessary directories if not os.path.exists(os.path.join(self.params['rundir'],"inputs")): os.makedirs(os.path.join(self.params['rundir'],"inputs")) if not os.path.exists(os.path.join(self.params['rundir'],"Particles")): os.makedirs(os.path.join(self.params['rundir'],"Particles")) moviedir = os.path.join(self.params['rundir'],"movies") if not os.path.exists(moviedir): os.mkdir(moviedir) os.system("ln -s %s/*st.mrc %s" % (self.ddstackpath, moviedir)) # write particle coordinate files self.write_inputs(self.stackparts) # submission agent object a = apParallelTasks.Agent(self.configfile) for i in range(len(self.joblist)): jobfile = 'align_polish_parts_%d' % i task = self.joblist[i] a.Main(jobfile, [task]) # Clean up apDisplay.printMsg("deleting temporary processing files") # Upload results # if self.params['commit'] is True: # apStack.commitPolishedStack(self.params, oldstackparts, newname='start.hed') time.sleep(1) return
#!/usr/bin/env python #pythonlib import sys #appion from appionlib import apTaskMonitor from appionlib import apConfig configfile = apConfig.getAppionConfigFile() rundir = sys.argv[1] a = apTaskMonitor.ParallelTaskMonitor(configfile, rundir) a.Main()
#!/bin/python #pythonlib import sys #appion from appionlib import apTaskMonitor from appionlib import apConfig configfile = apConfig.getAppionConfigFile() rundir = sys.argv[1] a = apTaskMonitor.ParallelTaskMonitor(configfile,rundir) a.Main()