pisces.extensions.simulation.core.initial_conditions.InitialConditions2DCartesian.get_model_metadata#
- InitialConditions2DCartesian.get_model_metadata(model_name: str)#
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/METADATAgroup, 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:
- Raises:
KeyError – If the model name is not found in the initial conditions.
FileNotFoundError – If the referenced model file does not exist.