pytuflow.TCF.tbc

Contents

pytuflow.TCF.tbc#

TCF.tbc(context=None)#

Returns the TBC ControlFile instance.

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

Parameters:

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

Returns:

The TGC control file instance.

Return type:

TBC

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

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

Example

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