gpridge.integrations.ase_oracle =============================== .. py:module:: gpridge.integrations.ase_oracle .. autoapi-nested-parse:: ASE atoms and calculators as a GPRidge oracle. ASE positions are Angstrom, ``get_potential_energy`` is eV, and ``get_forces`` is eV/Angstrom. A ``FixAtoms`` constraint freezes every Cartesian component of the listed atoms. Any other constraint is rejected, because a partial freeze is not a GPRidge frozen atom. The template is copied on each evaluation. The caller's atoms object keeps the positions it had. Classes ------- .. autoapisummary:: gpridge.integrations.ase_oracle.ASEOracle Functions --------- .. autoapisummary:: gpridge.integrations.ase_oracle.fixed_mask_from_constraints Module Contents --------------- .. py:function:: fixed_mask_from_constraints(constraints, n_atoms: int) -> numpy.ndarray Read a full-atom freeze from ``FixAtoms`` constraints. .. py:class:: ASEOracle(template, calculator, **kwargs) Bases: :py:obj:`gpridge.integrations.oracle.Oracle` Evaluate an existing calculator on copies of an atoms template. .. py:method:: from_calculator(atoms, calculator) -> ASEOracle :classmethod: Bind ``calculator`` to the geometry currently stored on ``atoms``.