mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
overlapfrac now user-settable
This commit is contained in:
parent
b21300a56a
commit
41abc9eb35
4 changed files with 9 additions and 0 deletions
|
@ -540,6 +540,7 @@ def launchVoidOverlap(sample1, sample2, sample1Dir, sample2Dir,
|
|||
binPath, thisDataPortion=None,
|
||||
logFile=None,
|
||||
continueRun=None, outputFile=None,
|
||||
overlapFrac=0.25,
|
||||
matchMethod=None, strictMatch=False):
|
||||
|
||||
sampleName1 = sample1.fullName
|
||||
|
@ -588,6 +589,8 @@ def launchVoidOverlap(sample1, sample2, sample1Dir, sample2Dir,
|
|||
cmd += " --zonePartFile2=" + sample2Dir+"/voidPart_" + \
|
||||
str(sampleName2)+".dat"
|
||||
|
||||
cmd += " --overlapFrac=" + str(overlapFrac)
|
||||
|
||||
if matchMethod == "useID": cmd += " --useID"
|
||||
cmd += periodicLine
|
||||
cmd += " --outfile=" + outputFile
|
||||
|
|
|
@ -32,6 +32,7 @@ def compareCatalogs(baseCatalogDir, compareCatalogDir,
|
|||
outputDir="./", logDir="./",
|
||||
matchMethod="useID", dataPortion="central",
|
||||
strictMatch=True,
|
||||
overlapFrac=0.25,
|
||||
pathToCTools="../../../c_tools"):
|
||||
|
||||
# reports the overlap between two void catalogs
|
||||
|
@ -42,6 +43,7 @@ def compareCatalogs(baseCatalogDir, compareCatalogDir,
|
|||
# matchMethod: "useID" to use unique IDs, "prox" to use overlap of Voronoi cells
|
||||
# dataPortion: "central" or "all"
|
||||
# strictMatch: if True, only attempt to match to trimmed catalog
|
||||
# overlapFrac: threshold fraction of Voronoi radius to count as matched
|
||||
# pathToCTools: path to location of VIDE c_tools directory
|
||||
|
||||
if not os.access(outputDir, os.F_OK):
|
||||
|
@ -74,6 +76,7 @@ def compareCatalogs(baseCatalogDir, compareCatalogDir,
|
|||
continueRun=False,
|
||||
outputFile=stepOutputFileName,
|
||||
matchMethod=matchMethod,
|
||||
overlapFrac=overlapFrac,
|
||||
strictMatch=strictMatch)
|
||||
|
||||
print " Done!"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue