Skip to content

Commit

Permalink
Fix deprecated import path [#892] (#893)
Browse files Browse the repository at this point in the history
* fix deprecated import path

* Drop "docs" builds based on changed in the tox file

* Update rtd build to fix it

* Change to a normal python install

---------

Co-authored-by: e-koch <koch.eric.w@gmail.com>
  • Loading branch information
keflavich and e-koch authored Dec 5, 2023
1 parent f62cc97 commit 9847cf1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- os: ubuntu-latest
python-version: 3.9
name: Py3.9 all
toxenv: py39-test-viz-noviz-docs
toxenv: py39-test-viz-noviz
- os: ubuntu-latest
python-version: 3.9
name: Py3.9 dev
Expand All @@ -58,7 +58,7 @@ jobs:
- os: ubuntu-latest
python-version: 3.9
name: Py3.9 all dev
toxenv: py39-test-viz-noviz-docs-dev
toxenv: py39-test-viz-noviz-dev
- os: ubuntu-latest
python-version: 3.8
name: Py3.8 mindeps and CASA
Expand Down
5 changes: 3 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
version: 2

build:
image: latest
os: "ubuntu-20.04"
tools:
python: "3.12"

# Install regular dependencies.
python:
version: 3.7
install:
- method: pip
path: .
Expand Down
6 changes: 3 additions & 3 deletions spectral_cube/spectral_cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ def _pix_cen(self):
lat = np.radians(lat)

# Find the dx and dy arrays
from astropy.coordinates.angle_utilities import angular_separation
from astropy.coordinates import angular_separation
dx = angular_separation(lon[:, :-1], lat[:, :-1],
lon[:, 1:], lat[:, :-1])
dy = angular_separation(lon[:-1, :], lat[:-1, :],
Expand Down Expand Up @@ -1541,7 +1541,7 @@ def _pix_size(self):
lat = np.radians(lat)

# Find the dx and dy arrays
from astropy.coordinates.angle_utilities import angular_separation
from astropy.coordinates import angular_separation
dx = angular_separation(lon[:, :-1], lat[:, :-1],
lon[:, 1:], lat[:, :-1])

Expand All @@ -1561,7 +1561,7 @@ def _pix_size(self):
lat = np.radians(lat)

# Find the dx and dy arrays
from astropy.coordinates.angle_utilities import angular_separation
from astropy.coordinates import angular_separation
dy = angular_separation(lon[:-1, :], lat[:-1, :],
lon[1:, :], lat[1:, :])

Expand Down

0 comments on commit 9847cf1

Please sign in to comment.