rust-sasa-python 0.2.4__tar.gz → 0.2.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -659,7 +659,7 @@ dependencies = [
659
659
 
660
660
  [[package]]
661
661
  name = "rust-sasa-python"
662
- version = "0.2.4"
662
+ version = "0.2.5"
663
663
  dependencies = [
664
664
  "nalgebra",
665
665
  "pdbtbx",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rust-sasa-python"
3
- version = "0.2.4"
3
+ version = "0.2.5"
4
4
  edition = "2024"
5
5
 
6
6
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rust-sasa-python
3
- Version: 0.2.4
3
+ Version: 0.2.5
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -305,10 +305,11 @@ pub fn calculate_sasa_internal(
305
305
  ) -> PyResult<Vec<f32>> {
306
306
  let atoms: Vec<Atom> = atoms_in
307
307
  .into_iter()
308
- .map(|(pos, radius, index)| Atom {
308
+ .enumerate()
309
+ .map(|(index, (pos, radius, parent_id))| Atom {
309
310
  position: Point3::new(pos.0, pos.1, pos.2),
310
311
  id: index,
311
- parent_id: None,
312
+ parent_id: Some(parent_id as isize),
312
313
  radius,
313
314
  })
314
315
  .collect();