NumPyHandler#
- class orbit.bunch_utils.NumPyHandler(dir_name)[source]#
Bases:
objectHandler implementing the FileHandler protocol for NumPy binary files. This handler will create two files in the directory passed to the constructor:
coords.npy: A memory-mapped NumPy array containing the bunch coordinates.
attributes.npz: A NumPy archive containing data related to the synchronous particle and other bunch attributes.
Methods Summary
read()- rtype
write(bunch)- rtype
None
Methods Documentation
- Parameters
dir_name (str | pathlib._local.Path) –
- write(bunch)[source]#
- Return type
None- Parameters
bunch (orbit.bunch_utils.serialize.BunchDict) –