orbit.bunch_utils#

Functions#

collect_bunch(bunch[, output_dir, return_memmap])

Collects attributes from a PyOrbit Bunch across all MPI ranks and returns it as a dictionary.

save_bunch(bunch[, output_dir, Handler])

Saves the collected bunch attributes to a specified directory.

load_bunch(input_dir[, Handler])

Loads the bunch attributes from a specified directory containing NumPy binary files.

Classes#

ParticleIdNumber()

This routine adds id numbers to particle in a bunch.

BunchDict

A dictionary containing the attributes of a PyOrbit::Bunch object.

SyncPartDict

A dictionary containing the attributes of the synchronous particle.

FileHandler(*args, **kwargs)

Protocol for file handlers to read/write bunch data.

NumPyHandler(dir_name)

Handler implementing the FileHandler protocol for NumPy binary files.

Class Inheritance Diagram#

Inheritance diagram of orbit.bunch_utils.particleidnumber.ParticleIdNumber, orbit.bunch_utils.serialize.BunchDict, orbit.bunch_utils.serialize.SyncPartDict, orbit.bunch_utils.serialize.FileHandler, orbit.bunch_utils.serialize.NumPyHandler