Skip to content
Snippets Groups Projects
Commit fabea2a6 authored by Francesco Pannarale's avatar Francesco Pannarale
Browse files

Improving condor job naming convention

git-svn-id: https://svn.ligo.caltech.edu/svn/bayeswave/trunk@38 c56465c9-8126-4a4f-9d7d-ac845eff4865
parent 51ed60d2
No related branches found
No related tags found
No related merge requests found
......@@ -202,8 +202,6 @@ print "*************************************************************************
print "\nFinding out if the triggers file must be copied over\n"
[IFOsChoice, triggersFileName, fileCopyCommand] = DetermineIFOsAndTriggersFile(period, IFOs, IFOlist)
# If mecessary, copy the file with the backround triggers
if not os.path.isfile(triggersFileName):
os.system(fileCopyCommand)
......@@ -259,7 +257,11 @@ for line in triggersFile:
print "Trigger %i: using trigger times %.4f and %.4f and lagtime %i" % (indexTriggers, IFO1TriggerTime, IFO2TriggerTime, lag)
# Create a directory for the condor job
jobDirName = "job_"+IFOs+"_"+str(indexTriggers)
if indexTriggers > 9:
indexTriggersStr = str(indexTriggers)
else:
indexTriggersStr = "0"+str(indexTriggers)
jobDirName = "job_"+IFOs+"_"+indexTriggersStr
os.system("mkdir "+jobDirName)
# Generate cache files for both IFOs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment