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

Fix numpy deprecation warning #38

Merged
merged 1 commit into from
Nov 23, 2023
Merged

Fix numpy deprecation warning #38

merged 1 commit into from
Nov 23, 2023

Conversation

maxnoe
Copy link
Member

@maxnoe maxnoe commented Nov 23, 2023

Fixes deprecation warnings during the tests:

/home/mnoethe/Uni/CTA/pycorsikaio/tests/test_io.py:79: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
data[0] = np.frombuffer(b'RUNE', dtype=np.float32)

@maxnoe maxnoe merged commit 19db1c7 into main Nov 23, 2023
4 checks passed
@maxnoe maxnoe deleted the numpy_deprecation branch November 23, 2023 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants