pisces.extensions.simulation.core.initial_conditions.InitialConditions.get_model_metadata#

InitialConditions.get_model_metadata(model_name: str)[source]#

Inspect the metadata of a stored model without fully loading it.

This method uses inspect_model_metadata() to open the model file, look inside its /METADATA group, and return a dictionary of metadata key-value pairs.

Parameters:

model_name (str) – The name/identifier of the model to inspect.

Returns:

A dictionary containing the model’s metadata.

Return type:

dict

Raises:
  • KeyError – If the model name is not found in the initial conditions.

  • FileNotFoundError – If the referenced model file does not exist.