pisces.extensions.simulation.core.initial_conditions.InitialConditions2DCartesian.get_model_fields#
- InitialConditions2DCartesian.get_model_fields(model_name: str)#
Inspect the available fields in a stored model without fully loading it.
This method uses
inspect_model_fields()to open the model file, look inside its/FIELDSgroup, and return a list of field names and their shapes.- Parameters:
model_name (
str) – The name/identifier of the model to inspect.- Returns:
A list of
(field_name, shape)pairs.- Return type:
- Raises:
KeyError – If the model name is not found in the initial conditions.
FileNotFoundError – If the referenced model file does not exist.