Skip to content

RuntimeInfo

RuntimeInfo dataclass

RuntimeInfo(environment: str, executable: Path, version: Optional[str], tcl_library: Optional[Path], installed: bool)

Configuration returned by setup(), not a running solver or saved settings file.

Attributes:

Name Type Description
environment str

Normalized environment name, either "colab" or "local".

executable Path

Absolute path to the OpenSees launcher or executable.

version str | None

Version parsed from the startup banner, or None if the probe succeeded without a recognizable version string.

tcl_library Path | None

Bundled Tcl library path for the Colab runtime, otherwise None.

installed bool

Whether this call installed/replaced the bundled runtime, not whether any compatible executable already exists. False for local setup.

Example
from femora import runtime
info = runtime.setup("local")
print(info.environment, info.executable, info.version)
Note

Ordinary callers obtain this frozen record from setup(). It does not keep a solver process alive, configure an MPI allocation, or persist settings between sessions. Passing info.executable to run() selects that file explicitly; recorded response units remain the model's responsibility.