pytuflow.SoilDatabase#
- class SoilDatabase(fpath=None, *args, **kwargs)#
Bases:
DatabaseBuildState
Database class for soil properties.
Currently, the Database class has not implemented the
write()
method, so it should be initialised with afpath
to an existing database file as it can’t be edited.- Parameters:
fpath (str | Path | None)
- __init__(fpath=None, *args, **kwargs)#
- Parameters:
fpath (str | Path | None)
- Return type:
None
Methods
Create a
RunState
version of this object.Returns an iterator over the (key, value) pairs in the database.
Returns the value of the given item from the database.
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.
List of scopes associated with the object.
Parent control that this database belongs to.
Configuration object for the TUFLOW control file.
a list of all changes made to the control file since the last write
whether the database has been loaded from disk or not.
Ordered dictionary containing the database entries.