Skip to content

Commit

Permalink
Merge pull request #60 from pllim/np2-py312
Browse files Browse the repository at this point in the history
TST: numpy 2, python 3.12
  • Loading branch information
pllim authored Sep 22, 2023
2 parents 593ff82 + de103b7 commit df86826
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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

0 comments on commit df86826

Please sign in to comment.