mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
some small bug fixes, also prepared prunveVoids to potentially remove voids based on density contrast criteria
This commit is contained in:
parent
971cf21ea2
commit
0ef211a1cc
4 changed files with 23 additions and 7 deletions
|
@ -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!"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue