ModelError

Symbolica documentation for getting started, symbolic expressions, numerical evaluation, pattern matching, and APIs in Python and Rust.

ModelError

class ModelError

Invalid particle-model data or model operation.

Examples

from symbolica import S, E
from symbolica.community import hepkit as hep
model = hep.Model.standard_model()
try:
    model.particle_by_pdg(999999)
except hep.ModelError as error:
    message = str(error)