mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 07:11:12 +00:00
check for no voids
This commit is contained in:
parent
02d2703fbb
commit
3be25104c9
1 changed files with 4 additions and 1 deletions
|
@ -58,9 +58,12 @@ def buildProfile(catalog, rMin, rMax):
|
|||
print " Selecting voids to stack..."
|
||||
voidsToStack = [v for v in catalog.voids if (v.radius > rMin and v.radius < rMax)]
|
||||
|
||||
if len(voidsToStack):
|
||||
print " No voids to stack!"
|
||||
return -1, -1, -1
|
||||
|
||||
print " Stacking voids..."
|
||||
allProfiles = []
|
||||
binCenters = []
|
||||
for void in voidsToStack:
|
||||
center = void.macrocenter
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue