Skip to content

Commit

Permalink
Update for ginga api change
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcraig committed Oct 1, 2024
1 parent f40485b commit ffe8298
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions astrowidgets/ginga.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from ginga.AstroImage import AstroImage
from ginga.canvas.CanvasObject import drawCatalog
from ginga.web.jupyterw.ImageViewJpw import EnhancedCanvasView
from ginga.util.wcs import raDegToString, decDegToString
from ginga.util.wcs import ra_deg_to_str, dec_deg_to_str

__all__ = ['ImageWidget']

Expand Down Expand Up @@ -214,8 +214,8 @@ def _mouse_move_cb(self, viewer, button, data_x, data_y):
if image.wcs.wcs is not None:
try:
ra, dec = image.pixtoradec(data_x, data_y)
val += (f' (RA: {raDegToString(ra)},'
f' DEC: {decDegToString(dec)})')
val += (f' (RA: {ra_deg_to_str(ra)},'
f' DEC: {dec_deg_to_str(dec)})')
except Exception:
val += ' (RA, DEC: WCS error)'

Expand Down

0 comments on commit ffe8298

Please sign in to comment.