pytuflow.BlockControl#
- class BlockControl(path=None, config=None, parent=None, scope=None, parser=None, parent_input=None, **kwargs)#
Bases:
ControlFileBuildStateControl file class for TUFLOW FV blocks.
Unlike other control file classes, this class is not directly associated with a control file command. It also does not have a separate file path associated with the control file, as a block is just a collection of inputs within an FV control file.
- Parameters:
path (str | Path)
config (TCFConfig)
parent (BuildState | None)
scope (ScopeList)
parser (Iterator[ControlFileBuildState])
parent_input (T_Input)
- __init__(path=None, config=None, parent=None, scope=None, parser=None, parent_input=None, **kwargs)#
- Parameters:
path (str | Path)
config (TCFConfig)
parent (ControlFile)
scope (ScopeList)
parser (Iterator[ControlFileBuildState])
parent_input (T_Input)
Methods
Appends a new input to the end of the control file.
Comments out a given input.
Create a
RunStateversion of this object.Find a particular input(s) using a search filter.
Returns the input with the given UUID.
Inserts an input before, or after, another reference input.
Preview the control file in
stdout.Removes the input from the control file.
Resets all recorded changes made to the control file since the last call to
write().Uncomment a given input.
Undo the last recorded change.
Write the object to file.
Attributes
A string identifying the PyTUFLOW object type.
Whether the object has been changed since it was last written to file.
The path to the control file.
Allows overriding by FVC to be the fvc rather than the tcf.
List of scopes associated with the object.
The configuration settings for the model.
The list of inputs and comments in the control file
The parent control file
The list of all changes made to the control file since the last time
write()was called.Whether the control file has been loaded from disk or not.