mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
cleaned up survey volume calculations. now uses correct z range, which corrects mean tracer separation estimation
This commit is contained in:
parent
cee027a759
commit
1b4751958f
4 changed files with 20 additions and 28 deletions
|
@ -115,10 +115,8 @@ def launchPrep(sample, binPath, workDir=None, inputDataDir=None,
|
|||
|
||||
# compute mean particle separation
|
||||
log.write("\nFlagging edge galaxies.\n")
|
||||
(boxVol, nbar) = getSurveyProps(sample.maskFile, sample.zRange[0],
|
||||
sample.zRange[1], sample.zRange[0], sample.zRange[1], "all",
|
||||
sample.omegaM, useComoving=useComoving)
|
||||
|
||||
(boxVol, nbar) = getSurveyProps(sample)
|
||||
|
||||
numTracers = int(open("total_particles.txt", "r").read())
|
||||
sample.meanPartSep = (1.*numTracers/boxVol/nbar)**(-1/3.)
|
||||
|
||||
|
@ -153,9 +151,7 @@ def launchPrep(sample, binPath, workDir=None, inputDataDir=None,
|
|||
|
||||
# compute mean particle separation
|
||||
# TODO - clean up this duplicate to cover all continueRun options
|
||||
(boxVol, nbar) = getSurveyProps(sample.maskFile, sample.zRange[0],
|
||||
sample.zRange[1], sample.zRange[0], sample.zRange[1], "all",
|
||||
sample.omegaM, useComoving=useComoving)
|
||||
(boxVol, nbar) = getSurveyProps(sample)
|
||||
|
||||
numTracers = int(open("total_particles.txt", "r").read())
|
||||
sample.meanPartSep = (1.*numTracers/boxVol/nbar)**(-1/3.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue