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)

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

write(bunch)

Methods Documentation

read()[source]#
Return type:

BunchDict

write(bunch)[source]#
Return type:

None

Parameters:

bunch (BunchDict)