gpridge.integrations.errors

Errors raised by the optional engine oracles.

A failed evaluation that the search can reject is not one of these exceptions at the C buffer boundary: write_oracle and write_force catch them and write a non-finite energy. evaluate raises them so a Python caller sees the reason.

Exceptions

IntegrationError

Base for a rejected geometry, a closed oracle, or a failed evaluation.

GeometryError

Positions, cell, atom order, or fixed-atom data do not match the oracle.

UnsupportedUnits

The engine unit style has no conversion into eV and Angstrom.

LifecycleError

The oracle has been closed, or a context manager was entered twice.

EngineEvaluationError

The engine rejected this geometry and can be called again.

Module Contents

exception gpridge.integrations.errors.IntegrationError

Bases: Exception

Base for a rejected geometry, a closed oracle, or a failed evaluation.

exception gpridge.integrations.errors.GeometryError

Bases: IntegrationError

Positions, cell, atom order, or fixed-atom data do not match the oracle.

exception gpridge.integrations.errors.UnsupportedUnits

Bases: IntegrationError

The engine unit style has no conversion into eV and Angstrom.

exception gpridge.integrations.errors.LifecycleError

Bases: IntegrationError

The oracle has been closed, or a context manager was entered twice.

exception gpridge.integrations.errors.EngineEvaluationError

Bases: IntegrationError

The engine rejected this geometry and can be called again.