Errors
Define the exceptions the library raises.
AlgebraicStateError
Bases: ValidationError
A law integrates a state that the equations of its system determine.
AnalysisError
Bases: SkcomplexError
An analysis cannot be applied to the system or the data.
ArgumentError
Bases: SkcomplexError, TypeError
A component is given an argument its type does not declare, or misses a required one.
BackendError
Bases: SkcomplexError
A backend is not registered or cannot compile a problem.
BackendWarning
Bases: UserWarning
A part of a problem runs on another backend than the one requested, or a compiled kernel runs in Python.
CapacityError
Bases: SimulationError
A topology request needs more members than a variable group on a network holds rows for.
ConservationError
Bases: ValidationError
A conserved quantity changes outside its flows, or an invariant of a run moves beyond its tolerance.
EnumerationLimitError
Bases: AnalysisError
An exact enumeration does not finish within its time limit.
ExperimentError
Bases: SkcomplexError
An experiment cannot run its tasks, such as when its worker processes die.
IncompatibleLawsError
Bases: ValidationError
A system mixes law kinds that no single form supports.
InfeasibleError
Bases: SolverError
A linear program has no solution, and its law asks to raise an error for that.
LabelError
Bases: ValidationError
A label is missing, duplicated, or produces a name collision.
MissingExtraError
Bases: SkcomplexError
A class needs an optional extra that is not installed.
NotPreparedError
Bases: SkcomplexError
A configurable object is run before it is prepared.
ParameterError
Bases: SkcomplexError
A parameter name is not part of the problem.
PhaseSpaceTooLargeError
Bases: SpaceTooLargeError
A phase space would hold more sites than its limit.
PipelineError
Bases: SkcomplexError
The passes of a compilation cannot be ordered, or a pass reads a field that no pass writes.
RegistryError
Bases: SkcomplexError
A name is registered twice with different meanings, or a registration is not valid or misses what it needs.
RewritingError
Bases: ValidationError
A rewriting system is malformed, or a generation would exceed its maximum size.
RoleElementError
Bases: RoleError
A role of an interaction is bound to an element of a kind it does not accept, or without a state it reads.
RoleError
Bases: ValidationError
A role of an interaction refers to an element that does not exist.
SimulationError
Bases: SkcomplexError
A simulation is used in a state that does not allow the operation.
SkcomplexError
Bases: Exception
Base exception of the library.
SolverError
Bases: SkcomplexError
A solver does not fit the problem or fails to advance it.
SpaceError
Bases: ValidationError
A part needs a kind of space the system lacks, a vector has no space, or a location does not fit its space.
SpaceTooLargeError
Bases: SpaceError
A space would hold more sites than its limit, or its elements would overflow their integer type.
TensorShapeError
Bases: ValidationError
A tensor operation is given an expression of the wrong shape, such as the tensor divergence of a scalar.
TensorSymmetryError
Bases: ValidationError
A rate law on a tensor state breaks the declared symmetry of the state.
UnobservedStatesWarning
Bases: UserWarning
An analysis drops states that have no observed transitions.
UnregisteredLawError
Bases: ValidationError
A system holds a law of a class that neither the shared core nor a formalism registered.
ValidationError
Bases: SkcomplexError
A system, a value, or a combination of a system with its solver and backend is not valid.
ValidationWarning
Bases: UserWarning
Warning of a problem that does not stop compilation.