Skip to content

Commit

Permalink
Numpy2 test environment
Browse files Browse the repository at this point in the history
Add Numpy2 Testing Environment
  • Loading branch information
snbianco authored Jul 1, 2024
1 parent f0b7562 commit f47fc89
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
python: "3.10"
toxenv: py310-test-alldeps

- name: Python 3.10 with numpy 2
os: ubuntu-latest
python: "3.10"
toxenv: py310-test-alldeps-numpy2

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions astrocut/utils/wcs_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

# flake8: noqa

import copy
import numpy as np

from astropy import units as u
Expand Down
2 changes: 1 addition & 1 deletion docs/astrocut/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ aligned and have the same pixel scale, no checking is done by Astrocut.
>>> center_coord = SkyCoord("150.0945 2.38681", unit='deg')
>>> cutout_size = [200,300]
>>> png_files = img_cut(input_files, center_coord, cutout_size, img_format='png', drop_after="") #doctest: +SKIP
>>> png_files = img_cut(input_files, center_coord, cutout_size, img_format='png') #doctest: +SKIP
>>> print(png_files[0]) #doctest: +SKIP
./hlsp_candels_hst_acs_cos-tot-sect23_f606w_v1.0_drz_150.094500_2.386810_200-x-300_astrocut.png
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ description =
astropy52: with astropy 5.2.*
numpy120: with numpy 1.20.*
numpy123: with numpy 1.23.*
numpy2: with numpy 2
astroquery04: with astroquery 0.4.*

# The following provides some specific pinnings for key packages
deps =
numpy120: numpy==1.20.*
numpy123: numpy==1.23.*
numpy2: numpy==2.0.*

astropy52: astropy==5.2.*

Expand Down

0 comments on commit f47fc89

Please sign in to comment.