Errors
Exception and warning classes raised by mechestim. See Common Errors for symptoms and fixes.
| Class | Type | When raised |
|---|---|---|
MechEstimError |
Exception (base) | Base class for all mechestim exceptions |
BudgetExhaustedError |
Exception | Operation would exceed remaining FLOP budget |
NoBudgetContextError |
Exception | No active budget (rare — global default usually prevents this) |
SymmetryError |
Exception | Tensor data is not symmetric within tolerance |
MechEstimWarning |
Warning (base) | Base class for all mechestim warnings |
SymmetryLossWarning |
Warning | An operation caused loss of symmetry metadata |
API Reference
mechestim.errors
Exception and warning classes for mechestim.
BudgetExhaustedError
Bases: MechEstimError
Raised when an operation would exceed the FLOP budget.
Source code in src/mechestim/errors.py
MechEstimError
MechEstimWarning
NoBudgetContextError
Bases: MechEstimError
Raised when a counted operation is called outside a BudgetContext.
Source code in src/mechestim/errors.py
SymmetryError
Bases: MechEstimError
Raised when a claimed tensor symmetry does not hold.
Source code in src/mechestim/errors.py
SymmetryLossWarning
Bases: MechEstimWarning
Warning issued when an operation causes loss of symmetry metadata.