mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
stackVoidsZero now (partially) understands periodic boundaries
This commit is contained in:
parent
fd2c5742b2
commit
cd2bef15b3
1 changed files with 5 additions and 1 deletions
|
@ -553,7 +553,11 @@ if (args.script or args.all) and haloFileBase != "":
|
|||
numPart += 1
|
||||
inFile.close()
|
||||
|
||||
minRadius = int(np.ceil(lbox/numPart**(1./3.)))
|
||||
meanDen = lbox/numPart**(1./3.)
|
||||
if meanDen < 1:
|
||||
minRadius = 4
|
||||
else:
|
||||
minRadius = int(np.ceil(meanDen))
|
||||
|
||||
if minHaloMass != "none":
|
||||
strMinHaloMass = "%.2e" % minHaloMass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue