pytuflow.TESF.remove_input

pytuflow.TESF.remove_input#

TESF.remove_input(inp)#

Removes the input from the control file.

Parameters:

inp (InputBuildState) – The input to remove from the control file.

Returns:

The input that was removed. If the method returns None, no input was removed.

Return type:

InputBuildState

Examples

1! Control File
2Solution Scheme == HPC
3Hardware == GPU
4SGS == On

The following code removes the SGS input from the control file:

>>> control_file = ... # assume this is the loaded control file object
>>> sgs_inp = control_file.find_input('SGS == On')[0]
>>> control_file.remove_input(sgs_inp)
<SettingInput> SGS == On

The content of the control file can be previewed using preview() to confirm that the SGS command has been removed:

>>> cf.preview()
! Control File
Solution Scheme == HPC
Hardware == GPU