diff --git a/benchmarks/mpas_ocean.py b/benchmarks/mpas_ocean.py index 468d5779d..9f9eaeaea 100644 --- a/benchmarks/mpas_ocean.py +++ b/benchmarks/mpas_ocean.py @@ -202,7 +202,6 @@ def teardown(self, resolution): del self.uxgrid def time_whole_grid(self, resolution): - for i in range(len(self.uxgrid.face_x.values)): - point_xyz = np.array([self.uxgrid.face_x[i].values, self.uxgrid.face_y[i].values, self.uxgrid.face_z[i].values]) + point_xyz = np.array([self.uxgrid.face_x[0].values, self.uxgrid.face_y[0].values, self.uxgrid.face_z[0].values]) - self.uxgrid.get_faces_containing_point(point_xyz=point_xyz) + self.uxgrid.get_faces_containing_point(point_xyz=point_xyz) diff --git a/uxarray/grid/grid.py b/uxarray/grid/grid.py index 548a2c37d..e7e7506e4 100644 --- a/uxarray/grid/grid.py +++ b/uxarray/grid/grid.py @@ -2448,7 +2448,7 @@ def get_faces_containing_point(self, point_xyz): """Gets the indexes of the faces that contain a specific point""" # Get the maximum face radius of the grid - max_face_radius = self.max_face_radius + max_face_radius = self.max_face_radius.values _ = self.face_edge_nodes_xyz subset = self.subset.bounding_circle(