Skip to content

Commit

Permalink
Backport PR yt-project#4825: BUG: use the validated center for YTCutt…
Browse files Browse the repository at this point in the history
…ingPlane set_field_parameter
  • Loading branch information
neutrinoceros authored and meeseeksmachine committed Feb 21, 2024
1 parent 5b07023 commit 95ed3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/data_objects/selection_objects/slices.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def __init__(
validate_object(data_source, YTSelectionContainer)
YTSelectionContainer2D.__init__(self, None, ds, field_parameters, data_source)
self._set_center(center)
self.set_field_parameter("center", center)
self.set_field_parameter("center", self.center)
# Let's set up our plane equation
# ax + by + cz + d = 0
self.orienter = Orientation(normal, north_vector=north_vector)
Expand Down

0 comments on commit 95ed3f6

Please sign in to comment.