mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
allow multiple stacks/slices for AP analysis within a redshift bin
This commit is contained in:
parent
c81fd8913b
commit
c088a87809
1 changed files with 9 additions and 3 deletions
|
@ -295,9 +295,15 @@ newSample.addStack({zMin}, {zMax}, 2*{minRadius}+18, 2*{minRadius}+24, True, Fal
|
||||||
useLightCone=useLightCone,
|
useLightCone=useLightCone,
|
||||||
subsample=str(subsample).strip('[]')))
|
subsample=str(subsample).strip('[]')))
|
||||||
|
|
||||||
scriptFile.write(stackInfo.format(zMin=sliceMin,
|
for iAPSlice in xrange(numAPSlices):
|
||||||
zMax=sliceMax,
|
sliceWidth = float(sliceMax) - float(sliceMin)
|
||||||
minRadius=minRadius))
|
sliceAPMin = float(sliceMin) + iAPSlice*sliceWidth/numAPSlices
|
||||||
|
sliceAPMax = float(sliceMin) + (iAPSlice+1)*sliceWidth/numAPSlices
|
||||||
|
sliceAPMin = "%0.2f" % sliceAPMin
|
||||||
|
sliceAPMax = "%0.2f" % sliceAPMax
|
||||||
|
scriptFile.write(stackInfo.format(zMin=sliceAPMin,
|
||||||
|
zMax=sliceAPMax,
|
||||||
|
minRadius=minRadius))
|
||||||
|
|
||||||
|
|
||||||
scriptFile.close()
|
scriptFile.close()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue