From 4218f529ea4c90980323d69d9a8d73859df086ac Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Wed, 31 Jul 2024 22:51:07 -0700 Subject: [PATCH] Copy pixel edge coordinates --- gridlock/grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gridlock/grid.py b/gridlock/grid.py index c8fe998..5790dbd 100644 --- a/gridlock/grid.py +++ b/gridlock/grid.py @@ -94,7 +94,7 @@ class Grid(GridDrawMixin, GridReadMixin, GridPosMixin): Raises: `GridError` on invalid input """ - edge_arrs = [numpy.asarray(cc) for cc in pixel_edge_coordinates] + edge_arrs = [numpy.array(cc) for cc in pixel_edge_coordinates] self.exyz = [numpy.unique(edges) for edges in edge_arrs] self.shifts = numpy.array(shifts, dtype=float)