Skip to content

Commit

Permalink
Merge pull request #238 from pllim/fix-np2
Browse files Browse the repository at this point in the history
MNT: Compatibility with numpy 2.0
  • Loading branch information
pllim committed Apr 12, 2024
2 parents 90306f3 + 49f8587 commit fbb3e34
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ jobs:
python-version: '3.x'
- name: Install and build
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -U numpy pyerfa astropy-iers-data PyYAML packaging
python -m pip install -U pip setuptools wheel
python -m pip install -U -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy --pre
python -m pip install -U astropy-iers-data PyYAML packaging
python -m pip install -U -i https://pypi.anaconda.org/liberfa/simple pyerfa --pre
python -m pip install -U -i https://pypi.anaconda.org/astropy/simple astropy --pre
python -m pip install git+https://github.com/ejeschke/ginga.git@main#egg=ginga
python -m pip install -e .[test]
Expand Down
6 changes: 4 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
1.6 (unreleased)
----------------
1.5.1 (2024-04-11)
------------------

- Compatibility with NumPy 2.0. [#238]

1.5 (2024-03-21)
----------------
Expand Down
2 changes: 1 addition & 1 deletion stginga/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def interpret_array(self, data):
of affected array elements.
"""
data = np.asarray(data, dtype=int) # Ensure int array
data = np.asarray(data, dtype=np.uint) # Ensure uint array
dqs_by_flag = {}

def _one_flag(vf):
Expand Down

0 comments on commit fbb3e34

Please sign in to comment.