cosapp.utils.swap_system

cosapp.utils.swap_system(old_system: System, new_system: System, init_values=True)[source]

Replace old_system by new_system.

Parameters:
  • [System] (- new_system)

  • [System]

  • [bool (- init_values) – system values are copied into the replacement system.

  • optional] (If True (default), original) – system values are copied into the replacement system.

Returns:

old_system [System]

Return type:

the original system, devoid of parent.