another attempt at making the jobSuccessful call work; some other minor fixes

This commit is contained in:
P.M. Sutter 2012-12-07 08:11:28 -06:00
parent f155564d6d
commit 6e18299ade
4 changed files with 9 additions and 8 deletions

View file

@ -200,7 +200,7 @@ void generateOutput(SimuData *data, int axis,
f.beginCheckpoint();
for (uint32_t i = 0; i < data->NumPart; i++)
{
f.writeReal32(data->Pos[x2][i]);
f.writeReal32(data->Pos[x2][i]*LIGHT_SPEED);
}
f.endCheckpoint();

View file

@ -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):

View file

@ -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",

View file

@ -240,7 +240,7 @@ def plotNumberDistribution(workDir=None, sampleList=None, figDir=None,
boxVol = vp.getSurveyProps(sample.maskFile,
sample.zBoundary[0], sample.zBoundary[1],
sample.zRange[0], sample.zRange[1], "all",
selectionFuncFile=sample.selFunFile)[0]
selectionFuncFile=None)[0]
else:
boxVol = sample.boxLen*sample.boxLen*(sample.zBoundaryMpc[1] -
sample.zBoundaryMpc[0])