Skip to content

Exceptions

Public exception types raised by openseespy-solvers.

Exception Description
OpenSeesSolverError Base class for package exceptions
BackendNotAvailableError Optional backend is not installed
SolverConvergenceError Iterative or eigen solver failed to converge
InvalidOpenSeesDataError OpenSeesPy supplied missing or malformed buffers
UnsupportedComputeDtypeError Requested compute dtype is unsupported
UnsupportedStorageSchemeError Requested sparse storage scheme is unsupported

Exception Reference

Exception types raised by openseespy-solvers.

OpenSeesSolverError

Bases: Exception

Base class for all openseespy-solvers exceptions.

UnsupportedStorageSchemeError

Bases: OpenSeesSolverError, NotImplementedError

Sparse storage scheme is not supported.

Raised when storage_scheme is not 'CSR' or 'CSC'.

SolverConvergenceError

Bases: OpenSeesSolverError

Iterative or eigen solver failed to converge.

InvalidOpenSeesDataError

Bases: OpenSeesSolverError, ValueError

OpenSees passed missing or malformed buffer arguments.

UnsupportedComputeDtypeError

Bases: OpenSeesSolverError, ValueError

Requested compute dtype is not supported (only float32 and float64).

BackendNotAvailableError

Bases: OpenSeesSolverError, ImportError

Optional backend library is not installed.

For example, importing :mod:openseespy_solvers.cupy without cupy raises this exception. Install the CUDA 13 extra, for example python -m pip install "openseespy-solvers[cuda13]".