pisces.extensions.simulation.core.initial_conditions.InitialConditions.load_model#
- InitialConditions.load_model(name: str) BaseModel [source]#
Load a specific model from the initial conditions.
This method retrieves the file path for the given model name from the internal configuration, verifies that the file exists, and uses
load_model()
to instantiate and return the model.- Parameters:
name (
str
) – The name/identifier of the model to load. Must match one of the keys inmodels
.- Returns:
An instance of the loaded model.
- Return type:
- Raises:
KeyError – If no model with the given
name
exists in the configuration.FileNotFoundError – If the referenced model file does not exist on disk.