Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixes
  • Loading branch information
prehner committed Oct 28, 2024
commit 06671ea4d72504f498734c550736bb5740fc0c47
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