diff --git a/yt/data_objects/index_subobjects/grid_patch.py b/yt/data_objects/index_subobjects/grid_patch.py index 596f2c2b33c..de19f6285bf 100644 --- a/yt/data_objects/index_subobjects/grid_patch.py +++ b/yt/data_objects/index_subobjects/grid_patch.py @@ -338,8 +338,8 @@ def select_fcoords(self, dobj): return np.empty((0, 3), dtype="float64") coords = convert_mask_to_indices(mask, self._last_count).astype("float64") coords += 0.5 - coords *= self.dds[None, :] - coords += self.LeftEdge[None, :] + coords *= self.dds.d[None, :] + coords += self.LeftEdge.d[None, :] return coords def select_fwidth(self, dobj): @@ -348,7 +348,7 @@ def select_fwidth(self, dobj): return np.empty((0, 3), dtype="float64") coords = np.empty((count, 3), dtype="float64") for axis in range(3): - coords[:, axis] = self.dds[axis] + coords[:, axis] = self.dds.d[axis] return coords def select_ires(self, dobj): diff --git a/yt/geometry/geometry_handler.py b/yt/geometry/geometry_handler.py index c10c16bd6de..a1f80ec146e 100644 --- a/yt/geometry/geometry_handler.py +++ b/yt/geometry/geometry_handler.py @@ -327,7 +327,7 @@ def fcoords(self): c = obj.select_fcoords(self.dobj) if c.shape[0] == 0: continue - ci[ind : ind + c.shape[0], :] = c + ci.d[ind : ind + c.shape[0], :] = c ind += c.shape[0] return ci @@ -363,7 +363,8 @@ def fwidth(self): c = obj.select_fwidth(self.dobj) if c.shape[0] == 0: continue - ci[ind : ind + c.shape[0], :] = c + ci.d[ind : ind + c.shape[0], :] = c + ind += c.shape[0] return ci @@ -419,7 +420,7 @@ def fcoords_vertex(self): c = obj.select_fcoords_vertex(self.dobj) if c.shape[0] == 0: continue - ci[ind : ind + c.shape[0], :, :] = c + ci.d[ind : ind + c.shape[0], :, :] = c ind += c.shape[0] return ci