mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
fixed array bug
This commit is contained in:
parent
4746c280ff
commit
b2d5c05286
1 changed files with 1 additions and 1 deletions
|
@ -461,7 +461,7 @@ def getArray(objectList, attr):
|
|||
attrArr[:,idim] = np.fromiter((np.atleast_1d(getattr(v, attr))[idim] \
|
||||
for v in objectList), float )
|
||||
|
||||
if ndim == 1: attrArr = attArr[:,0]
|
||||
if ndim == 1: attrArr = attrArr[:,0]
|
||||
|
||||
return attrArr
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue