Skip to content

Commit

Permalink
Merge pull request #2450 from astrofrog/fix-dev-astropy
Browse files Browse the repository at this point in the history
Fix compatibility with latest developer version of astropy
  • Loading branch information
astrofrog authored Oct 23, 2023
2 parents c54b2e7 + b479bc0 commit 25c8df4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
version: 2

build:
image: latest
os: "ubuntu-22.04"
tools:
python: "3"

sphinx:
builder: html
configuration: doc/conf.py
fail_on_warning: true

python:
version: 3.8
install:
- method: pip
path: .
Expand Down
4 changes: 2 additions & 2 deletions glue/plugins/coordinate_helpers/link_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ class BaseCelestialMultiLink(BaseMultiLink):

def forwards(self, in_lon, in_lat):
cin = self.frame_in(in_lon * u.deg, in_lat * u.deg)
cout = cin.transform_to(self.frame_out)
cout = cin.transform_to(self.frame_out())
return cout.spherical.lon.degree, cout.spherical.lat.degree

def backwards(self, out_lon, out_lat):
cout = self.frame_out(out_lon * u.deg, out_lat * u.deg)
cin = cout.transform_to(self.frame_in)
cin = cout.transform_to(self.frame_in())
return cin.spherical.lon.degree, cin.spherical.lat.degree

# Backward-compatibility with glue-core <0.15
Expand Down

0 comments on commit 25c8df4

Please sign in to comment.