rail.tools.flow_handle module
Rail-specific data management
- class rail.tools.flow_handle.FlowDict[source]
Bases:
dict
A specialized dict to keep track of individual flow objects: this is just a dict these additional features
Keys are paths
Values are flow objects, this is checked at runtime.
There is a read(path, force=False) method that reads a flow object and inserts it into the dictionary
There is a single static instance of this class
- class rail.tools.flow_handle.FlowHandle(tag, data=None, path=None, creator=None)[source]
Bases:
ModelHandle
A wrapper around a file that describes a PZFlow object
- flow_factory = {}
- suffix = 'pkl'