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

adjust to be compatable with depricated numpy syntax (re. shiftnd crash) #57

Merged
merged 3 commits into from Apr 7, 2024

Conversation

mikebrv-q
Copy link
Contributor

@mikebrv-q mikebrv-q commented Apr 4, 2024

starting from numpy 1.24.0 ragged array are deprecated. previous usage in shiftnd is not compatible any more.
see numpy/numpy#22004

Note: perhaps the requirements should be updated to numpy>=1.24.0

closes #55

Copy link
Owner

@keflavich keflavich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please remove the changes to Cross Correlation.ipynb from this PR?

@mikebrv-q
Copy link
Contributor Author

mikebrv-q commented Apr 7, 2024

as requested i have removed the changes to the example notebook

We don't want the `object` dtype, it breaks the broadcasting rules.  Instead, we just want to avoid `np.sum` here.
@keflavich
Copy link
Owner

Thanks for the fix. I looked more closely, and to match the intent of the original function, we needed a different set of changes.

@keflavich keflavich merged commit d5ecb66 into keflavich:master Apr 7, 2024
0 of 5 checks passed
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.

shiftnd crashes (also in example notebook)
2 participants