pytuflow.TCF.ecf

Contents

pytuflow.TCF.ecf#

TCF.ecf(context=None)#

Returns the ECF ControlFile instance.

If more than one ECF control file instance exists, a Context object must be provided to resolve to the correct ECF.

Parameters:

context (Context, optional) – A context object to resolve the correct ECF control file instance. Not required unless more than one ECF control file instance exists.

Returns:

The ECF control file instance.

Return type:

ECF

Raises:
  • KeyError – If the ESTRY Control File is not found in the control file.

  • ValueError – If more than one ESTRY Control File is found and no context is provided to resolve the correct, or if the context does not resolve into a single ESTRY Control File.

Example

>>> tcf = ... # assuming is an instance of TCF
>>> ecf = tcf.ecf()