pymor.core.exceptions

Classes

AccuracyError

Is raised if the result of a computation is inaccurate.

BFGSError

Is raised if the BFGS algorithm fails to converge.

CacheKeyGenerationError

Is raised when cache key generation fails due to unsupported arguments.

ConstError

I get thrown when you try to add a new member to a locked class instance.

DependencyMissingError

Raised when optional packages are required but are not installed.

ExtensionError

Is raised if a (basis) extension algorithm fails.

GmshMissingError

Is raised when a Gmsh is not found.

IOLibsMissingError

ImageCollectionError

Is raised when a pymor.algorithms.image.estimate_image fails for given operator.

InversionError

Is raised if an operator inversion algorithm fails.

LinAlgError

Is raised if a linear algebra operation fails.

MeshioMissingError

Is raised when meshio is not available.

NeuralNetworkTrainingError

Is raised when training of a neural network fails.

NewtonError

Is raised if the Newton algorithm fails to converge.

NoMatchingRuleError

NoResultDataError

QtMissingError

Raise me where having importable Qt bindings is non-optional.

RuleNotMatchingError

SklearnMissingError

Raise me where having importable scikit-learn version is non-optional.

TRError

Is raised if the TR algorithm fails to converge.

TorchMissingError

Raise me where having importable torch version is non-optional.

UnpicklableError

exception pymor.core.exceptions.AccuracyError[source]

Bases: Exception

Is raised if the result of a computation is inaccurate.

exception pymor.core.exceptions.BFGSError[source]

Bases: Exception

Is raised if the BFGS algorithm fails to converge.

exception pymor.core.exceptions.CacheKeyGenerationError[source]

Bases: Exception

Is raised when cache key generation fails due to unsupported arguments.

exception pymor.core.exceptions.ConstError[source]

Bases: Exception

I get thrown when you try to add a new member to a locked class instance.

exception pymor.core.exceptions.DependencyMissingError(dependency, msg=None)[source]

Bases: ImportError

Raised when optional packages are required but are not installed.

exception pymor.core.exceptions.ExtensionError[source]

Bases: Exception

Is raised if a (basis) extension algorithm fails.

This will mostly happen during a basis extension when the new snapshot is already in the span of the basis.

exception pymor.core.exceptions.GmshMissingError[source]

Bases: Exception

Is raised when a Gmsh is not found.

exception pymor.core.exceptions.IOLibsMissingError(msg=None)[source]

Bases: ImportError

exception pymor.core.exceptions.ImageCollectionError(op)[source]

Bases: Exception

Is raised when a pymor.algorithms.image.estimate_image fails for given operator.

exception pymor.core.exceptions.InversionError[source]

Bases: Exception

Is raised if an operator inversion algorithm fails.

exception pymor.core.exceptions.LinAlgError[source]

Bases: Exception

Is raised if a linear algebra operation fails.

exception pymor.core.exceptions.MeshioMissingError[source]

Bases: Exception

Is raised when meshio is not available.

exception pymor.core.exceptions.NeuralNetworkTrainingError[source]

Bases: Exception

Is raised when training of a neural network fails.

exception pymor.core.exceptions.NewtonError[source]

Bases: InversionError

Is raised if the Newton algorithm fails to converge.

exception pymor.core.exceptions.NoMatchingRuleError(obj)[source]

Bases: NotImplementedError

exception pymor.core.exceptions.NoResultDataError(msg=None)[source]

Bases: Exception

exception pymor.core.exceptions.QtMissingError(msg=None)[source]

Bases: DependencyMissingError

Raise me where having importable Qt bindings is non-optional.

exception pymor.core.exceptions.RuleNotMatchingError[source]

Bases: NotImplementedError

exception pymor.core.exceptions.SklearnMissingError(msg=None)[source]

Bases: DependencyMissingError

Raise me where having importable scikit-learn version is non-optional.

exception pymor.core.exceptions.TRError[source]

Bases: Exception

Is raised if the TR algorithm fails to converge.

exception pymor.core.exceptions.TorchMissingError(msg=None)[source]

Bases: DependencyMissingError

Raise me where having importable torch version is non-optional.

exception pymor.core.exceptions.UnpicklableError(cls)[source]

Bases: Exception