swiftest.Simulation.remove_body

swiftest.Simulation.remove_body#

Simulation.remove_body(name=None, id=None)[source]#

Removes a body (test particle or massive body) from the internal Dataset.

This method will update data and init_cond attributes with the body or bodies removed.

Only name or id may be passed, but not both.

Parameters:
  • name (str or array-like of str, optional) – Name or names of bodies to remove.

  • id (int or array-like of int, optional) – Id value or values of bodies to removed.

Returns:

None