From 708ee6ab5932ba513828550119fa831e08caec21 Mon Sep 17 00:00:00 2001 From: Chad Baker Date: Fri, 3 Jan 2025 09:34:12 -0700 Subject: [PATCH] pyo3 = 0.23.3, latest release --- rust/Cargo.toml | 2 +- rust/fastsim-core/src/cycle.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 05ee09c7..c99ffb22 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -18,7 +18,7 @@ codegen-units = 1 # optimize connection between modules [workspace.dependencies] anyhow = "1.0.57" ndarray = { version = "0.15.4", features = ["serde"] } -pyo3 = "0.22.4" +pyo3 = "0.23.3" pyo3-log = "*" serde = "1.0.143" serde_json = "1.0.83" diff --git a/rust/fastsim-core/src/cycle.rs b/rust/fastsim-core/src/cycle.rs index 678bd906..51ba3b58 100644 --- a/rust/fastsim-core/src/cycle.rs +++ b/rust/fastsim-core/src/cycle.rs @@ -536,7 +536,7 @@ impl RustCycleCache { } pub fn to_dict<'py>(&self, py: Python<'py>) -> anyhow::Result> { - let dict = PyDict::new_bound(py); + let dict = PyDict::new(py); dict.set_item("time_s", self.time_s.to_vec())?; dict.set_item("mps", self.mps.to_vec())?; dict.set_item("grade", self.grade.to_vec())?;