From 6b77231320af9f195fd8de0baf280fc5f29709ef Mon Sep 17 00:00:00 2001 From: "Pey Lian Lim (Github)" <2090236+pllim@users.noreply.github.com> Date: Wed, 7 Sep 2022 08:47:49 -0400 Subject: [PATCH] MNT: Compatibility with Ginga v4 --- astrowidgets/core.py | 4 ++-- setup.cfg | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/astrowidgets/core.py b/astrowidgets/core.py index 3e573a8..0cd9464 100644 --- a/astrowidgets/core.py +++ b/astrowidgets/core.py @@ -19,7 +19,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,7 +214,7 @@ def _mouse_move_cb(self, viewer, button, data_x, data_y): try: ra, dec = image.pixtoradec(data_x, data_y) val += ' (RA: {}, DEC: {})'.format( - raDegToString(ra), decDegToString(dec)) + ra_deg_to_str(ra), dec_deg_to_str(dec)) except Exception: val += ' (RA, DEC: WCS error)' diff --git a/setup.cfg b/setup.cfg index 31bb032..ba8f33b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -36,7 +36,7 @@ zip_safe = False packages = find: install_requires = astropy - ginga + ginga>=3.4 pillow ipywidgets>=7.5 ipyevents>=0.6.3