Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: numpy 2, python 3.12 #60

Merged
merged 2 commits into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- name: Install and build
run: |
python -m pip install --upgrade pip setuptools
Expand All @@ -97,10 +97,11 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12-dev'
- name: Install and build
run: |
python -m pip install --upgrade pip setuptools
python -m pip install --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy>=0.0.dev0 --pre --upgrade
python -m pip install --extra-index-url https://pypi.anaconda.org/astropy/simple astropy>=0.0.dev0 --pre --upgrade
python -m pip install -e .[test]
- name: Test with dev deps
Expand Down Expand Up @@ -143,7 +144,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.10'
- name: Install and build
run: |
python -m pip install --upgrade pip setuptools
Expand Down
2 changes: 1 addition & 1 deletion reftools/imphtcomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def _compare_tables(self):
bws2.append(bw2.photbw2[w][flam1.nelem2[i] * j + k])
bwdiff.append((bws1[-1] - bws2[-1]) / bws1[-1])

self.modes = np.array(modes, dtype=np.string_)
self.modes = np.array(modes, dtype=np.bytes_)
self.flams1 = np.array(flams1, dtype=float)
self.plams1 = np.array(plams1, dtype=float)
self.bws1 = np.array(bws1, dtype=float)
Expand Down