Skip to content

feat: pyo3 bindings (MWE)#100

Merged
kayleigh222 merged 7 commits into
mainfrom
feat/pyo3-bindings-mwe
Apr 7, 2026
Merged

feat: pyo3 bindings (MWE)#100
kayleigh222 merged 7 commits into
mainfrom
feat/pyo3-bindings-mwe

Conversation

@seankhl
Copy link
Copy Markdown
Contributor

@seankhl seankhl commented Apr 7, 2026

A few more changes will come with the next libqdx version.

seankhl and others added 5 commits April 6, 2026 15:53
Replace pure-Python TRC implementation and format parsers with the
native libqdx PyO3 extension. Re-export native types (PyTRC, PyTopology,
PyResidues, PyChains, enums) directly from libqdx.

- Delete pdb.py, mmcif.py, sdf.py (~1,619 lines)
- Reduce mol.py from ~1,128 to ~99 lines (re-exports + AminoAcidSeq)
- Rewire convert/__init__.py to delegate to libqdx
- Update objects.py and exess modules for new type interfaces
- Update QM/MM example to use TRC constructor and numpy geometry
- Update test assertions for numpy geometry arrays

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds comprehensive module docstring to mol.py documenting all
re-exported types (TRC, Topology, Residues, Chains, enums, ref types)
with descriptions and usage examples. Restores Args/Returns docstrings
on convert functions (load_structure, save_structure, from_pdb, etc.).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Re-add comments for the content-guessing heuristic fallback and
multi-model PDB wrapping logic, which are non-obvious code paths.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 7, 2026

📖 Docs preview: https://talo.github.io/rush-py/pr-100/

@seankhl seankhl requested a review from kayleigh222 April 7, 2026 19:43
Copy link
Copy Markdown
Contributor

@kayleigh222 kayleigh222 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kayleigh222 kayleigh222 merged commit c935314 into main Apr 7, 2026
3 checks passed
@kayleigh222 kayleigh222 deleted the feat/pyo3-bindings-mwe branch April 7, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants