Skip to content

Commit 9847cf1

Browse files
keflaviche-koch
andauthored
Fix deprecated import path [#892] (#893)
* 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 <[email protected]>
1 parent f62cc97 commit 9847cf1

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- os: ubuntu-latest
4343
python-version: 3.9
4444
name: Py3.9 all
45-
toxenv: py39-test-viz-noviz-docs
45+
toxenv: py39-test-viz-noviz
4646
- os: ubuntu-latest
4747
python-version: 3.9
4848
name: Py3.9 dev
@@ -58,7 +58,7 @@ jobs:
5858
- os: ubuntu-latest
5959
python-version: 3.9
6060
name: Py3.9 all dev
61-
toxenv: py39-test-viz-noviz-docs-dev
61+
toxenv: py39-test-viz-noviz-dev
6262
- os: ubuntu-latest
6363
python-version: 3.8
6464
name: Py3.8 mindeps and CASA

.readthedocs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
version: 2
22

33
build:
4-
image: latest
4+
os: "ubuntu-20.04"
5+
tools:
6+
python: "3.12"
57

68
# Install regular dependencies.
79
python:
8-
version: 3.7
910
install:
1011
- method: pip
1112
path: .

spectral_cube/spectral_cube.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ def _pix_cen(self):
14531453
lat = np.radians(lat)
14541454

14551455
# Find the dx and dy arrays
1456-
from astropy.coordinates.angle_utilities import angular_separation
1456+
from astropy.coordinates import angular_separation
14571457
dx = angular_separation(lon[:, :-1], lat[:, :-1],
14581458
lon[:, 1:], lat[:, :-1])
14591459
dy = angular_separation(lon[:-1, :], lat[:-1, :],
@@ -1541,7 +1541,7 @@ def _pix_size(self):
15411541
lat = np.radians(lat)
15421542

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

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

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

0 commit comments

Comments
 (0)