copy#

ParticleBunch.copy()[source]#

Return a copy of the bunch.

To improve performance, this copy won’t contain copies of auxiliary arrays, only of the particle coordinates and properties.