mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
bug fixes in profiles
This commit is contained in:
parent
f905ae92af
commit
9791ddcfa3
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,7 @@ def buildProfile(catalog, rMin, rMax):
|
|||
shiftedPart = shiftPart(localPart, center, periodicLine, catalog.ranges)
|
||||
|
||||
dist = np.sqrt(np.sum(shiftedPart[:,:]**2, axis=1))
|
||||
thisProfile, radii = np.histogram(dist, bins=nBins, range=(0,rMaxProfile))
|
||||
thisProfile, radii = np.histogram(dist, bins=10, range=(0,rMaxProfile))
|
||||
deltaV = 4*np.pi/3*(radii[1:]**3-radii[0:(radii.size-1)]**3)
|
||||
thisProfile = np.float32(thisProfile)
|
||||
thisProfile /= deltaV
|
||||
|
@ -75,6 +75,7 @@ def buildProfile(catalog, rMin, rMax):
|
|||
allProfiles.append(thisProfile)
|
||||
binCenters = 0.5*(radii[1:] + radii[:-1])
|
||||
|
||||
nVoid = len(voidsToStack)
|
||||
stackedProfile = np.std(allProfiles, axis=0) / np.sqrt(nVoids)
|
||||
sigmas = np.std(allProfiles, axis=0) / np.sqrt(nVoids)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue