pytuflow.TCF.tgc

Contents

pytuflow.TCF.tgc#

TCF.tgc(context=None)#

Returns the TGC ControlFile instance.

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

Parameters:

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

Returns:

The TGC control file instance.

Return type:

TGC

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

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

Example

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