Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
prehner committed Oct 28, 2024
1 parent c327609 commit 06671ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions feos-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ rustdoc-args = ["--html-in-header", "./docs-header.html"]
features = ["rayon"]

[dependencies]
quantity = { version = "0.9", features = ["approx", "ndarray"]}
quantity = { version = "0.9", features = ["approx", "ndarray"] }
num-dual = { version = "0.10", features = ["linalg"] }
ndarray = { version = "0.16", features = ["serde", "approx"] }
nalgebra = "0.33"
Expand All @@ -36,7 +36,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
indexmap = "2.0"
conv = "0.3"
numpy = { git = "https://github.com/PyO3/rust-numpy", optional = true }
numpy = { version = "0.22", optional = true }
pyo3 = { version = "0.22", features = ["multiple-pymethods"], optional = true }
rayon = { version = "1.5", optional = true }
typenum = "1.16"
Expand Down
4 changes: 2 additions & 2 deletions feos-core/src/python/user_defined.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ macro_rules! impl_residual {
fn molar_weight(&self) -> MolarWeight<Array1<f64>> {
Python::with_gil(|py| {
let py_result = self.0.bind(py).call_method0("molar_weight").unwrap();
if py_result.get_type().name().unwrap() != "PySIQuantity" {
if py_result.get_type().name().unwrap() != "si_units.SIObject" {
panic!(
"Expected an 'PySIQuantity' for the 'molar_weight' method return type, got {}",
"Expected an 'SIObject' for the 'molar_weight' method return type, got {}",
py_result.get_type().name().unwrap()
);
}
Expand Down

0 comments on commit 06671ea

Please sign in to comment.