NumPyHandler#
- class orbit.bunch_utils.NumPyHandler(dir_name)[source]#
Bases:
objectHandler 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
write(bunch)- rtype
None
Methods Documentation
- write(bunch)[source]#
- Return type
None- Parameters
bunch (orbit.bunch_utils.serialize.BunchDict) –