Skip to content

Commit

Permalink
⬆️ Bump pyo3 from 0.22.4 to 0.23.2, numpy from 0.22.0 to 0.23.0 (#21)
Browse files Browse the repository at this point in the history
* ⬆️ Bump pyo3 from 0.22.4 to 0.23.2, numpy from 0.22.0 to 0.23.0

Bumps [pyo3](https://github.com/pyo3/pyo3) from 0.22.4 to 0.23.2.
- [Release notes](https://github.com/pyo3/pyo3/releases)
- [Changelog](https://github.com/PyO3/pyo3/blob/main/CHANGELOG.md)
- [Commits](PyO3/pyo3@v0.22.4...v0.23.2)

Bumps [numpy](https://github.com/PyO3/rust-numpy) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/PyO3/rust-numpy/releases)
- [Changelog](https://github.com/PyO3/rust-numpy/blob/main/CHANGELOG.md)
- [Commits](PyO3/rust-numpy@v0.22.0...v0.23.0)

* 👽 Remove _bound suffix from .to_pyarray_bounds

PyO3 0.23 completes the removal of the "GIL Refs" API, so the "Bound" API functions which had been introduced with _bound suffixes are no longer needed. Xref https://pyo3.rs/v0.23.2/migration#gil-refs-feature-removed
weiji14 authored Nov 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 5a8cee8 commit d5e3b6c
Showing 3 changed files with 18 additions and 18 deletions.
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -14,9 +14,9 @@ bytes = "1.5.0"
geo = "0.29.0"
ndarray = "0.15.6"
num-traits = "0.2.19"
numpy = "0.22.0"
numpy = "0.23.0"
object_store = { version = "0.9.0", features = ["http"] }
pyo3 = { version = "0.22.4", features = ["abi3-py310", "extension-module"] }
pyo3 = { version = "0.23.2", features = ["abi3-py310", "extension-module"] }
tiff = { git = "https://github.com/image-rs/image-tiff.git", version = "0.9.1", rev = "0c54a18e2130bd8e3e897009e1fb59eaaf607c6c" } # https://github.com/image-rs/image-tiff/pull/224
tokio = { version = "1.36.0", features = ["rt-multi-thread"] }
url = "2.5.0"
4 changes: 2 additions & 2 deletions src/python/adapters.rs
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@ impl PyCogReader {
.map_err(|err| PyValueError::new_err(err.to_string()))?;

// Convert from ndarray (Rust) to numpy ndarray (Python)
Ok(array_data.to_pyarray_bound(py))
Ok(array_data.to_pyarray(py))
}

/// Get x and y coordinates as numpy.ndarray
@@ -80,7 +80,7 @@ impl PyCogReader {
.xy_coords()
.map_err(|err| PyValueError::new_err(err.to_string()))?;

Ok((x_coords.to_pyarray_bound(py), y_coords.to_pyarray_bound(py)))
Ok((x_coords.to_pyarray(py), y_coords.to_pyarray(py)))
}
}

0 comments on commit d5e3b6c

Please sign in to comment.