Skip to content

Commit

Permalink
Pull center value directly rather than calculate from edges
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle Conroy <[email protected]>
  • Loading branch information
duytnguyendtn and kecnry authored Oct 14, 2024
1 parent 8e230e4 commit e40e624
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,8 @@ def vue_center_on_data(self, event=None):
return

# Obtain center point of the current image and convert into sky coordinates
x_center = (viewer.state.x_min + viewer.state.x_max) * 0.5
y_center = (viewer.state.y_min + viewer.state.y_max) * 0.5
skycoord_center = viewer.state.reference_data.coords.pixel_to_world(
x_center, y_center
viewer.state.zoom_center_x, viewer.state.zoom_center_y
)

# Extract SkyCoord values as strings for plugin display
Expand Down

0 comments on commit e40e624

Please sign in to comment.