response_matrix_data#

class ConfigModel(*, matrix, variable_names, observable_names)[source]#

Bases: BaseModel

Base configuration model for response matrix

Parameters:
  • matrix (list[list[float]]) – Response matrix data (rows for observable, cols for variables)

  • variable_names (list[str], optional) – Variable names, basically the actuators

  • observables_names (list[str]) – Observable names, basically the measurements

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

matrix: list[list[float]]#
observable_names: list[str]#
variable_names: list[str] | None#
class ResponseMatrixData(cfg)[source]#

Bases: object

Generic response matrix loader

static load(filename)[source]#

Load a reponse matrix from a configuration file