ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/python/submitThem.py
(Generate patch)

Comparing UserCode/VHbb/python/submitThem.py (file contents):
Revision 1.15 by peller, Tue Oct 2 11:23:10 2012 UTC vs.
Revision 1.17 by peller, Wed Oct 3 10:12:27 2012 UTC

# Line 50 | Line 50 | if( not os.path.isdir(logPath) ):
50          print 'Exit'
51          sys.exit(-1)
52  
53 < repDict = {'en':en,'logpath':logPath,'job':'','task':opts.task}
53 > repDict = {'en':en,'logpath':logPath,'job':'','task':opts.task,'queue': 'all.q'}
54   def submit(job,repDict):
55          repDict['job'] = job
56 <        command = 'qsub -V -cwd -q all.q -N %(job)s_%(en)s%(task)s -o %(logpath)s/%(job)s_%(en)s_%(task)s.out -e %(logpath)s/%(job)s_%(en)s_%(task)s.err runAll.sh %(job)s %(en)s ' %(repDict) + opts.task
56 >        command = 'qsub -V -cwd -q %(queue)s -N %(job)s_%(en)s%(task)s -o %(logpath)s/%(job)s_%(en)s_%(task)s.out -e %(logpath)s/%(job)s_%(en)s_%(task)s.err runAll.sh %(job)s %(en)s ' %(repDict) + opts.task
57          print command
58          subprocess.call([command], shell=True)
59  
# Line 70 | Line 70 | if not opts.task == 'prep':
70  
71  
72   if opts.task == 'plot':
73 +    repDict['queue'] = 'short.q'
74      for item in Plot_vars:
75          submit(item,repDict)
76  
77   elif opts.task == 'dc':
78 +    repDict['queue'] = 'short.q'
79      for item in DC_vars:
80          if 'ZH%s'%opts.mass in item[0] and opts.tag in item[0]:
81              submit(item[0],repDict)
82          elif 'ZH' in item[0] and opts.tag in item[0] and opts.mass == '*':
83              submit(item[0],repDict)
84 +            
85   elif opts.task == 'prep':
86      submit('prepare',repDict)
87  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines