fixup center calculation
This commit is contained in:
parent
aaf4e6e498
commit
c524b28fe6
@ -118,7 +118,7 @@ class Grid(object):
|
|||||||
"""
|
"""
|
||||||
# center is just average of first and last xyz, which is just the average of the
|
# center is just average of first and last xyz, which is just the average of the
|
||||||
# first two and last two exyz
|
# first two and last two exyz
|
||||||
centers = [(self.exyz[a][:1] + self.exyz[a][-1:]) / 4.0 for a in range(3)]
|
centers = [(self.exyz[a][:2] + self.exyz[a][-2:]) / 4.0 for a in range(3)]
|
||||||
return numpy.array(centers, dtype=float)
|
return numpy.array(centers, dtype=float)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user