NumPyHandler#

class orbit.bunch_utils.NumPyHandler(dir_name)[source]#

Bases: object

Handler implementing the FileHandler protocol for NumPy binary files.

Parameters:

dir_name (str | PathLike)

_coords_fname#

The name of the file containing the bunch coordinates (default: “coords.npy”).

Type:

str

_attributes_fname#

The name of the file containing data related to the synchronous particle and other bunch attributes (default: “attributes.npz”).

Type:

str

Methods Summary

read()

write(bunch)

Methods Documentation

read()[source]#
Return type:

BunchDict

write(bunch)[source]#
Return type:

None

Parameters:

bunch (BunchDict)