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

InitialConditions.remove_model(name: str) None[source]#

Remove a model and its associated files from the initial conditions.

This method:
  1. Verifies that the specified model exists in the configuration.

  2. Deletes the model’s main file and optional particle file from disk (if they exist).

  3. Removes the model entry from the configuration.

Parameters:

name (str) – The name/identifier of the model to remove. Must match one of the keys in models.

Raises:

KeyError – If no model with the given name exists in the configuration.