pytuflow.TCFRunState.soils_file

pytuflow.TCFRunState.soils_file#

TCFRunState.soils_file()#

Returns the model’s SoilDatabase instance.

Returns:

The SoilDatabase instance.

Return type:

SoilDatabase

Raises:

KeyError – If the soil file is not found in the control file.

Example

>>> tcf = ... # assuming is an instance of TCF
>>> soils_file = tcf.context().soils_file()