pytuflow.TEF.parse_event_file#
- static TEF.parse_event_file(fpath, config=None, parent=None)#
Static method to parse the event file and return an EventDatabase.
- Parameters:
fpath (str | Path) – The path to the event file (
.tef
)config (TCFConfig, optional) – The configuration settings for the TCF.
parent (ControlFile, optional) – The parent control file.
- Returns:
An instance of EventDatabase containing parsed events.
- Return type:
EventDatabase
Examples
>>> from pytuflow import TEF >>> TEF.parse_event_file('path/to/event_file.tef') {'Q100': {'_event_': '100yr2hr'}, 'QPMF': {'_event_': 'PMFyr2hr'}}