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

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

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 /FIELDS group, 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:

list of tuple

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

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