FileHandler#

class orbit.bunch_utils.FileHandler(*args, **kwargs)[source]#

Bases: Protocol

Protocol for file handlers to read/write bunch data.

Parameters
  • args (Any) –

  • kwargs (Any) –

Return type

None

read() BunchDict:[source]#

Reads the bunch data from the specified directory and returns it as a dictionary.

write(bunch: BunchDict) None:[source]#

Writes the bunch data to the specified directory.

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) –