mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
another attempt at making the jobSuccessful call work; some other minor fixes
This commit is contained in:
parent
f155564d6d
commit
6e18299ade
4 changed files with 9 additions and 8 deletions
|
@ -158,10 +158,11 @@ def jobSuccessful(logFile, doneString):
|
|||
jobDone = False
|
||||
checkLine = ""
|
||||
if os.access(logFile, os.F_OK):
|
||||
filelines = file(logFile, "r").readlines()
|
||||
if len(filelines) >= 1:
|
||||
checkLine = filelines[-1]
|
||||
jobDone = (checkLine == doneString)
|
||||
#filelines = file(logFile, "r").readlines()
|
||||
#if len(filelines) >= 1:
|
||||
# checkLine = filelines[-1]
|
||||
for line in open(logFile, 'r'):
|
||||
if doneString in line: jobDone = True
|
||||
return jobDone
|
||||
|
||||
def getStackSuffix(zMin, zMax, rMin, rMax, dataPortion):
|
||||
|
|
|
@ -379,8 +379,8 @@ def launchStack(sample, stack, binPath, thisDataPortion=None, logDir=None,
|
|||
%s
|
||||
ranSeed %d
|
||||
dataPortion %s
|
||||
#barycenters %s
|
||||
#boundaryDistances %s
|
||||
barycenters %s
|
||||
boundaryDistances %s
|
||||
%s
|
||||
""" % \
|
||||
(zobovDir+"/voidDesc_"+thisDataPortion+"_"+sampleName+".out",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue