pytuflow.TCF.tef#
- TCF.tef(context=None)#
Returns the TEF ControlFile instance.
If more than one TEF control file instance exists, a Context object must be provided to resolve to the correct TEF.
- Parameters:
context (Context, optional) – A context object to resolve the correct TEF control file instance. Not required unless more than one TEF control file instance exists.
- Returns:
The TEF control file instance.
- Return type:
- Raises:
KeyError – If the TEF Control File is not found in the control file.
ValueError – If more than one Event File is found and no context is provided to resolve the correct, or if the context does not resolve into a single Event File.
Example
>>> tcf = ... # assuming is an instance of TCF >>> tef = tcf.tef()