gpridge.pyeon_bridge ==================== .. py:module:: gpridge.pyeon_bridge .. autoapi-nested-parse:: Optional pyeonclient Matter overlay for gpridge. No hard dependency on pyeonclient. Uses duck-typing on objects that expose ``positions`` (n,3), ``atomic_numbers``, and optionally ``cell`` / ``masses``, matching pyeonclient.Matter nanobind surface. When pyeonclient is installed, preferred ASE converters from ``pyeonclient.ase_bridge`` are used for Matter <-> ASE. Functions --------- .. autoapisummary:: gpridge.pyeon_bridge.pyeonclient_available gpridge.pyeon_bridge.matter_positions_flat gpridge.pyeon_bridge.matter_to_ase gpridge.pyeon_bridge.ase_to_matter gpridge.pyeon_bridge.path_matrix_from_matters gpridge.pyeon_bridge.apply_path_matrix_to_matters gpridge.pyeon_bridge.images_from_matters gpridge.pyeon_bridge.oracle_from_matter_potential Module Contents --------------- .. py:function:: pyeonclient_available() -> bool Return whether ``pyeonclient`` can be imported. .. py:function:: matter_positions_flat(matter: Any) -> numpy.ndarray Flat 3*N Cartesian positions from Matter or ASE Atoms. .. py:function:: matter_to_ase(matter: Any, *, calculator: Any = None, pbc: Optional[bool] = None) -> Any Convert pyeonclient Matter (or duck-type) to ``ase.Atoms``. Prefer ``pyeonclient.ase_bridge.matter_to_ase`` when available. .. py:function:: ase_to_matter(atoms: Any, potential: Any = None, parameters: Any = None) -> Any Build pyeonclient Matter from ASE Atoms (requires pyeonclient). .. py:function:: path_matrix_from_matters(matters: Sequence[Any]) -> numpy.ndarray Stack Matter (or Atoms) frames to (n, 3*n_atoms). .. py:function:: apply_path_matrix_to_matters(matters: Sequence[Any], path: numpy.ndarray) -> None Write path matrix into Matter/Atoms positions in place. .. py:function:: images_from_matters(initial: Any, final: Any, n_intermediate: int, *, calculator: Any = None, path_method: str = 'idpp', spring_constant: float = 0.1, sidpp_alpha: float = 0.33) -> List[Any] Matter endpoints -> ASE image list via C++ path init (overlay entry). .. py:function:: oracle_from_matter_potential(matter: Any, *, gp: Any = None, template_atoms: Any = None) -> Any Oracle callback using Matter's potential (evaluate energy/forces). Prefers evaluating through a bound ASE calculator when present on a template Atoms. Otherwise uses Matter.potential_energy / forces if exposed.