NumPyHandler#

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

Bases: object

Handler implementing the FileHandler protocol for NumPy binary files.

Parameters

dir_name (str | os.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()

rtype

BunchDict

write(bunch)

rtype

None

Methods Documentation

read()[source]#
Return type

BunchDict

write(bunch)[source]#
Return type

None

Parameters

bunch (orbit.bunch_utils.serialize.BunchDict) –