pytuflow.FVWQ#
- class FVWQ(*args, **kwargs)#
Bases:
ControlFileLoadMixin,FVControlFileBuildState,FVWQMixinInitialises the FV Water Quality Control File class in a build state.
If the class is initialised with the
fpathparameter set toNone, an empty class will be initialised.- Parameters:
fpath (PathLike, optional) – The path to the control file (str or Path). If set to
None, the FVWQ will be initialised as an empty control file.**kwargs (optional parameters) –
- configFVCConfig, optional
This object stores useful information such as variable mappings, the event database, current spatial database etc. If set to None, a new FVCConfig object will be created.
- parentControlFile, optional
Will set the parent of the control file to another control file e.g. for a TGC, the parent should be set to the FVC.
- scopeScopeList, optional
A list of scope objects that will be inherited by the control file itself. Not currently used but reserved in case this is useful information in the future.
- log_levelstr, optional
The logging level to use for the control file. Options are ‘DEBUG’, ‘INFO’, ‘WARNING’, ‘ERROR’, ‘CRITICAL’. Default is ‘WARNING’.
- log_to_filePathLike, optional
If set, will log the control file to the given file path. Default is None.
- __init__(*args, **kwargs)#
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.
Returns the organics matter model.
Returns the pathogens as (name, model) pairs.
Returns the phosphorus model.
Returns the phytoplankten as (name, model) pairs.
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().Returns the simulation class being used.
Uncomment a given input.
Undo the last recorded change.
Returns a list of water quality constiutents present in the model.
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 parser iterable that is used to load the control file.
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.