pisces.geometry.grids.utils.load_grid_from_hdf5_group#

pisces.geometry.grids.utils.load_grid_from_hdf5_group(group: Group, registry: Registry = None) Grid[source]#

Load a grid instance from an HDF5 group using the provided registry.

Parameters:
  • group (h5py.Group) – HDF5 group containing the saved grid data.

  • registry (Registry, optional) – Registry mapping grid class names to their corresponding classes. If None, the default grid registry will be used.

Returns:

An instance of the appropriate grid subclass.

Return type:

Grid

Raises:

ValueError – If the group is missing required metadata or the class is unregistered.