PropertyInputs module

Inputs specific to a property (or region) including:

  • Crop production

  • Pasture production

  • Labour

  • Supplementary feeding

  • Stubble

  • Farm level finance ie capital level

  • Farm level machinery ie soil adjustment factors for seeding efficiency

author: young

AfoLogic.PropertyInputs.f_farmer_lmu_adj(a_lmuregion_lmufarmer)

After collecting data from a couple of farmers I have found that, for the web app, we need to make the LMU/soil type structure more flexible so farmers can make their own LMUS.

To achieve this, the user creates their own LMUs and selects which regional LMU most closely aligns. This is done so that the default values for their custom LMU are as realistic as possible. The user can then go and adjust the inputs in the web app that have an LMU axis to allign the production correctly.

However, because the web app doesnt have every input is an LMU axis this function exists to create the users lmu (for inputs that don’t exist in the app the user lmu data will be equal to the nearest regional lmu, as specified by the user).

Has to occur before SA are applied because the SAs from web app have already been adjusted.

AfoLogic.PropertyInputs.f_property_inp_sa(pinp_defaults)

Applies sensitivity adjustment to each input. After the sensitivities are applied, when using the DSP model, inputs with a feed period index are expanded to account for additional feed periods that are added due to season nodes. This function gets called at the beginning of each loop in the RunAfoRaw_Multi.py module

SA order is: sav, sam, sap, saa, sat, sar. So that multiple SA can be applied to one input.

Returns:

None.

AfoLogic.PropertyInputs.f_reshape_pinp_defaults(pinp_defaults, sinp_defaults)
AfoLogic.PropertyInputs.f_select_n_reset_pinp(property, pinp_defaults)