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

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

Retrieve the grid object of a stored model without fully loading it.

This method opens the model file, reads the metadata, and returns the grid object.

Parameters:

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

Returns:

The grid object associated with the model.

Return type:

Grid

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

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