mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 23:31:12 +00:00
fixed bug in checking for empty stacks
This commit is contained in:
parent
a5072f9e4d
commit
38215aca13
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ 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):
|
||||
if len(voidsToStack) == 0:
|
||||
print " No voids to stack!"
|
||||
return -1, -1, -1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue