mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +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
|
@ -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();
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue