Skip to content

Commit 44d6f82

Browse files
committed
add method build_topology for possible IRC usage
1 parent 9f94cc1 commit 44d6f82

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/engine.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,14 @@ pub fn init_pyo3_molecule(elem: &[&str], xyzs: &[Vec<f64>]) -> PyResult<PyObject
109109
Ok(molecule_instance.into())
110110
})
111111
}
112+
113+
/// Call `geometric.molecule.build_topology` function to build the topology.
114+
pub fn molecule_build_topology(
115+
molecule: &PyObject,
116+
kwargs: Option<&Bound<'_, PyDict>>,
117+
) -> PyResult<()> {
118+
Python::with_gil(|py| {
119+
molecule.call_method(py, "build_topology", (), kwargs)?;
120+
Ok(())
121+
})
122+
}

0 commit comments

Comments
 (0)