From c524b28fe6d0337410e5487e6f4b90a5d390b352 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sun, 7 Apr 2019 16:56:31 -0700 Subject: [PATCH] fixup center calculation --- gridlock/grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gridlock/grid.py b/gridlock/grid.py index 2097ba6..f46f7a9 100644 --- a/gridlock/grid.py +++ b/gridlock/grid.py @@ -118,7 +118,7 @@ class Grid(object): """ # center is just average of first and last xyz, which is just the average of the # 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) @property