some small bug fixes, also prepared prunveVoids to potentially remove voids based on density contrast criteria

This commit is contained in:
P.M. Sutter 2012-11-16 09:48:02 -06:00
parent 971cf21ea2
commit 0ef211a1cc
4 changed files with 23 additions and 7 deletions

View file

@ -245,7 +245,7 @@ def launchPrune(sample, binPath, thisDataPortion=None,
totalPart = open(zobovDir+"/total_particles.txt", "r").read()
maxDen = 0.2*float(mockIndex)/float(totalPart)
observationLine = " --isObservation"
periodicLine = "--periodic=''"
periodicLine = " --periodic=''"
else:
mockIndex = -1
maxDen = 0.2
@ -297,7 +297,8 @@ def launchPrune(sample, binPath, thisDataPortion=None,
cmd += " >& " + logFile
os.system(cmd)
if jobSuccessful(logFile, "NetCDF: Not a valid ID\n") or jobSuccessful(logFile, "Done!") or jobSuccessful(logFile, ""):
if jobSuccessful(logFile, "NetCDF: Not a valid ID\n") or \
jobSuccessful(logFile, "Done!"):
print "done"
else:
print "FAILED!"