Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit fbb3e34

Browse files
authored
Merge pull request #238 from pllim/fix-np2
MNT: Compatibility with numpy 2.0
2 parents 90306f3 + 49f8587 commit fbb3e34

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/ci_workflows.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ jobs:
9494
python-version: '3.x'
9595
- name: Install and build
9696
run: |
97-
python -m pip install --upgrade pip setuptools wheel
98-
python -m pip install -U numpy pyerfa astropy-iers-data PyYAML packaging
97+
python -m pip install -U pip setuptools wheel
98+
python -m pip install -U -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy --pre
99+
python -m pip install -U astropy-iers-data PyYAML packaging
100+
python -m pip install -U -i https://pypi.anaconda.org/liberfa/simple pyerfa --pre
99101
python -m pip install -U -i https://pypi.anaconda.org/astropy/simple astropy --pre
100102
python -m pip install git+https://github.com/ejeschke/ginga.git@main#egg=ginga
101103
python -m pip install -e .[test]

CHANGES.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
1.6 (unreleased)
2-
----------------
1+
1.5.1 (2024-04-11)
2+
------------------
3+
4+
- Compatibility with NumPy 2.0. [#238]
35

46
1.5 (2024-03-21)
57
----------------

stginga/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def interpret_array(self, data):
231231
of affected array elements.
232232
233233
"""
234-
data = np.asarray(data, dtype=int) # Ensure int array
234+
data = np.asarray(data, dtype=np.uint) # Ensure uint array
235235
dqs_by_flag = {}
236236

237237
def _one_flag(vf):

0 commit comments

Comments
 (0)