recreate_system

amuse_util.recreate_system(ba: inspect.BoundArguments, particles: amuse.datamodel.particles.Particles, converter: (<class 'amuse.units.nbody_system.nbody_to_si'>, None) = None)[source]

Reinitialize a System made with initialize_system.

Parameters
bainspect.BoundArguments
particlesParticles

should have everything, including for evolution

convertergeneric_unit_converter

needed if ‘converter’ not in ba.kwargs if provided, will overwrite built-in, if exists

Notes

A good way to do this is to have particles be the set with all the up-to-date information. Then there is no need to pass evolution or gravity.