mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
FIXED zobov bug when only using one subdomain; added zobov buffer as tunable parameter
This commit is contained in:
parent
8730193e71
commit
23d665f7bd
6 changed files with 139 additions and 83 deletions
|
@ -353,6 +353,7 @@ def launchPrep(sample, binPath, workDir=None, inputDataDir=None,
|
|||
# -----------------------------------------------------------------------------
|
||||
def launchZobov(sample, binPath, outputDir=None, logDir=None, continueRun=None,
|
||||
numZobovDivisions=None, numZobovThreads=None,
|
||||
zobovBuffer=0.1,
|
||||
mergingThreshold=0.2):
|
||||
|
||||
startTime = time.time()
|
||||
|
@ -382,9 +383,14 @@ def launchZobov(sample, binPath, outputDir=None, logDir=None, continueRun=None,
|
|||
if os.access(outputDir+"/voidDesc_"+sampleName+".out", os.F_OK):
|
||||
os.unlink(outputDir+"/voidDesc_"+sampleName+".out")
|
||||
|
||||
cmd = [binPath+"/vozinit", datafile, "0.1", "1.0", str(numZobovDivisions), \
|
||||
isObs = 0
|
||||
if sample.dataType == "observation":
|
||||
isObs = 1
|
||||
|
||||
cmd = [binPath+"/vozinit", datafile, str(zobovBuffer), \
|
||||
"1.0", str(numZobovDivisions), \
|
||||
"_"+sampleName, str(numZobovThreads), \
|
||||
binPath, outputDir]
|
||||
binPath, outputDir, str(isObs)]
|
||||
log = open(logFile, 'w')
|
||||
subprocess.call(cmd, stdout=log, stderr=log)
|
||||
log.close()
|
||||
|
|
|
@ -101,6 +101,7 @@ for sample in dataSampleList:
|
|||
launchZobov(sample, ZOBOV_PATH, outputDir=outputDir, logDir=logDir,
|
||||
continueRun=continueRun, numZobovDivisions=numZobovDivisions,
|
||||
numZobovThreads=numZobovThreads,
|
||||
zobovBuffer=zobovBuffer,
|
||||
mergingThreshold=mergingThreshold)
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
|
|
|
@ -258,9 +258,7 @@ def loadVoidCatalog(sampleDir,
|
|||
# clearNearBoundaries: remove voids where the maximum extent is
|
||||
# greater than the distance to nearest edge
|
||||
# maxHighCentralDen: if != -1, filters based on based on central density
|
||||
|
||||
# NOTE: we are moving away from the cumbersome void catalog outputs of
|
||||
# older versions, and will eventually just output a single catalog.
|
||||
#
|
||||
# To replicate the old "central" catalog, choose:
|
||||
# clearEdges = True
|
||||
# clearTree = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue