RUFAS.routines.field.soil.soil_config_factory module#

class RUFAS.routines.field.soil.soil_config_factory.SoilConfiguration(*values)#

Bases: Enum

Enum of all currently support soil configurations

GENERIC = 'generic'#
class RUFAS.routines.field.soil.soil_config_factory.SoilConfigFactory#

Bases: object

This module serves as a way to easily create and modify SoilData objects based on a set of given configurations. It is based on the CropSpeciesDataFactory model, and should contain all equivalent functionalities.

static create_soil_data(field_size: float, config: SoilConfiguration = SoilConfiguration.GENERIC, **kwargs) SoilData#

Creates a soil data object from a SoilConfiguration enum, with the defaults from that configurations and the optional ability to modify attributes.

Parameters#

field_sizefloat

Size of the field. Used to initialize a Soil object for this module to work with, if a pre-configured SoilData object is not provided (ha).

configSoilConfiguration

Configuration of the soil.

Returns#

SoilData

A Soildata object.