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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue