Skip to content

Errors

Define the exceptions the library raises.

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.

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.

LabelError

Bases: ValidationError

A label is missing, duplicated, or produces a name collision.

NotCheckedError

Bases: SkcomplexError

A configurable object is prepared or run before it is checked.

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.

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 does not have, or a vector variable has no space for its dimension.

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.