Skip to content

Commit

Permalink
BUG: fix a defect in CartesianCoordinateHandler._ortho_pixelize
Browse files Browse the repository at this point in the history
(ValueError: setting an array element with a sequence.)
  • Loading branch information
neutrinoceros committed Jul 19, 2024
1 parent 22c2ec6 commit 151697f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/geometry/coordinates/cartesian_coordinates.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def _ortho_pixelize(
period3 = self.period[:].copy() # dummy here
period3[0] = self.period[self.x_axis[dim]]
period3[1] = self.period[self.y_axis[dim]]
zax = list({0, 1, 2} - {self.x_axis[dim], self.y_axis[dim]})
zax = list({0, 1, 2} - {self.x_axis[dim], self.y_axis[dim]})[0]
period3[2] = self.period[zax]
if hasattr(period2, "in_units"):
period2 = period2.in_units("code_length").d
Expand Down

0 comments on commit 151697f

Please sign in to comment.