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

InitialConditions.update_model(model_name: str, **parameters) None[source]#

Update parameters of an existing model in the initial conditions.

Parameters:
  • model_name (str) – The name/identifier of the model to update.

  • parameters (dict) –

    Key-value pairs of parameters to update. Supported keys include:

    • position : unyt array or sequence of length ndim

    • velocity : unyt array or sequence of length ndim

    • orientation : sequence or array defining orientation vector

    • spin : scalar float

Raises:
  • KeyError – If no model with the given model_name exists.

  • ValueError – If provided parameters are invalid or inconsistent with expected dimensions/units.