picogl.examples.utils.bond_detection ==================================== .. py:module:: picogl.examples.utils.bond_detection .. autoapi-nested-parse:: Lightweight covalent bond heuristics for PDB examples (no ElMo / Qt deps). Attributes ---------- .. autoapisummary:: picogl.examples.utils.bond_detection.BOND_LENGTHS_SIMPLE picogl.examples.utils.bond_detection.BIO_ELEMENTS picogl.examples.utils.bond_detection.METALS picogl.examples.utils.bond_detection.HALOGENS Functions --------- .. autoapisummary:: picogl.examples.utils.bond_detection._normalize_elements picogl.examples.utils.bond_detection._within_tolerance picogl.examples.utils.bond_detection.atoms_should_bond Module Contents --------------- .. py:data:: BOND_LENGTHS_SIMPLE :type: dict[tuple[str, str], float] .. py:data:: BIO_ELEMENTS .. py:data:: METALS .. py:data:: HALOGENS .. py:function:: _normalize_elements(atom1: Any, atom2: Any) -> tuple[str, str] | None .. py:function:: _within_tolerance(distance: float, expected: float, tol: float = 0.25) -> bool .. py:function:: atoms_should_bond(atom1: Any, atom2: Any, distance: float) -> bool Return True when *distance* is consistent with a covalent bond between *atom1* and *atom2*.