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