pisces.extensions.simulation.core.initial_conditions.InitialConditions.load_particles#
- InitialConditions.load_particles(model_name: str, **kwargs) ParticleDataset [source]#
Load the particle dataset associated with a specific model.
- Parameters:
model_name (
str
) – The name/identifier of the model whose particles to load.kwargs – Additional keyword arguments to pass to the
ParticleDataset
constructor.
- Returns:
An instance of the loaded particle dataset.
- Return type:
- Raises:
KeyError – If no model with the given
model_name
exists.FileNotFoundError – If the referenced particle file does not exist.
ValueError – If no particles are associated with the specified model.