pytuflow.TCF.output_folder_1d

pytuflow.TCF.output_folder_1d#

TCF.output_folder_1d(context=None)#

Returns the 1D output folder.

Returns the last instance of the command. If multiple versions of the output folder command exist and some exist in IF logic blocks, a context must be provided to resolve the correct one.

Parameters:

context (Context, optional) – A context object to resolve the correct 1D output directory. Not required unless more than one 1D output directory exists.

Returns:

The 1D output directory.

Return type:

Path

Raises:

ValueError – If the output folder cannot be determined.

Examples

>>> tcf = ... # assuming is an instance of TCF
>>> tcf.output_folder_1d()
WindowsPath('../results/EG15')