Skip to content

Commit

Permalink
Merge pull request #153 from pllim/fix-devdeps-tst
Browse files Browse the repository at this point in the history
MNT: Compatibility with Ginga v4
  • Loading branch information
pllim authored Sep 9, 2022
2 parents 4af2750 + 6b77231 commit 7a8ba86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions astrowidgets/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down Expand Up @@ -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)'

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ zip_safe = False
packages = find:
install_requires =
astropy
ginga
ginga>=3.4
pillow
ipywidgets>=7.5
ipyevents>=0.6.3
Expand Down

0 comments on commit 7a8ba86

Please sign in to comment.