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

MNT: Compatibility with numpy 2.0 #238

Merged
merged 4 commits into from
Apr 12, 2024
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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