From ffe8298b212d4155c7e02fe814ebb6459768aa4b Mon Sep 17 00:00:00 2001 From: Matt Craig Date: Tue, 1 Oct 2024 15:13:54 -0500 Subject: [PATCH] Update for ginga api change --- astrowidgets/ginga.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/astrowidgets/ginga.py b/astrowidgets/ginga.py index 50de07e..4ffafb5 100644 --- a/astrowidgets/ginga.py +++ b/astrowidgets/ginga.py @@ -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'] @@ -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)'