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

Support ndarray 0.16 #439

Merged
merged 8 commits into from
Oct 4, 2024
Merged

Support ndarray 0.16 #439

merged 8 commits into from
Oct 4, 2024

Conversation

magnusuMET
Copy link
Contributor

Fixes #438

@magnusuMET
Copy link
Contributor Author

This PR is blocked on rust-ndarray/ndarray-linalg#379

@bluss
Copy link

bluss commented Aug 20, 2024

Previous discussion about ndarray 0.16, rust-numpy and ndarray-linalg: rust-ndarray/ndarray#1374

@bluss
Copy link

bluss commented Aug 20, 2024

Ok, that comment was maybe not super helpful - ndarray 0.16 got a few more changes since that happened. But I think it points out that ndarray-linalg doesn't need to be a strict blocker for this update.

@magnusuMET
Copy link
Contributor Author

I see the main argument: Allow the deprecation and let the end user deal with the dependency through their lockfile. I am not sure how to create a lockfile with the right dependency through cargo invocations, but checking in the lockfile should hopefully work

@bluss
Copy link

bluss commented Aug 21, 2024

Some more deprecated methods were removed in ndarray post adamreichold's test.
I would suggest maybe restricting to ndarray 0.15 and 0.16 if possible (this is not my project -- just how I would do it); I don't usually work with open ranges of dependencies so don't really know.

Hoping ndarray-linalg can be tested using ndarray 0.15 only suggested. With that said, we should be able to get a solution (to update) ndarray-linalg sooner or later..

@davidhewitt
Copy link
Member

ndarray 0.15 has an MSRV of 1.49, so I think we can limit to 0.15 and 0.16 here. (We are about to move to MSRV 1.63 as per #449.)

@juntyr
Copy link

juntyr commented Oct 4, 2024

What’s the status of this PR now?

@davidhewitt
Copy link
Member

Just needs someone to pick up and finish off as per my above comment - the MSRV bump is now applied on main.

@magnusuMET
Copy link
Contributor Author

@davidhewitt Bumped lower ndarray version in a new commit

@magnusuMET
Copy link
Contributor Author

@davidhewitt Let's try again, including the changes in #451

Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

This looks good to me, thanks very much @magnusuMET for the swift pick-up once we decided what to do here!

@davidhewitt davidhewitt merged commit cf9b967 into PyO3:main Oct 4, 2024
48 checks passed
@bluss
Copy link

bluss commented Oct 4, 2024

thanks everyone for working on this 💯

jleibs added a commit to rerun-io/rerun that referenced this pull request Oct 10, 2024
### What
- Add a new type helper for IndexValues (in general some variation of
this will be useful for other APIs)
- Added a dependency on `numpy` package for ArrayLike functionality
  - `numpy` has an old dep on ndarray.
- This has already been fixed but not yet released:
PyO3/rust-numpy#439
- ChunkedArrays are sadly are more complicated (see the note in:
https://docs.rs/arrow/latest/arrow/pyarrow/index.html)


### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [x] I've included a screenshot or gif (if applicable)
* [x] I have tested the web demo (if applicable):
* Using examples from latest `main` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/7670?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/7670?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json)
* [x] The PR title and labels are set such as to maximize their
usefulness for the next release's CHANGELOG
* [x] If applicable, add a new check to the [release
checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)!
* [x] If have noted any breaking changes to the log API in
`CHANGELOG.md` and the migration guide

- [PR Build Summary](https://build.rerun.io/pr/7670)
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)

To run all checks from `main`, comment on the PR with `@rerun-bot
full-check`.
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.

Support for ndarray 0.16
4 participants