Project

General

Profile

Actions

Bug #91

open

Testing land procedures

Added by Jake Wit about 2 years ago. Updated about 2 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Start date:
04/18/2022
Due date:
% Done:

0%

Estimated time:

Description

This issue will involve testing the functions in the land-procedures.nls file. I did not write the code for this file, so I am writing tests based on what I think the procedures should do according to Will's description.

Actions #1

Updated by Jake Wit about 2 years ago

Initial note

After hearing Will describe the procedures for me, he suggested that I focus my tests on update-soil-health, as that is the wrapper function for all of the other procedures. He also sent me the data for his soil-health change calculations, and I've been trying to understand how it all works. I think I have some basic understanding of how it works, but I do have several questions:

  • what are m_b and m_w? in the model they don't appear to be constants, so are they calculated? is that why they aren't used in the example cases at the bottom of the spreadsheets?
  • are the functionalities all implemented? i.e can I even write tests to begin with? some of these procedures look incomplete
  • are the procedures stochastic or deterministic? should I be looking for a range of possible soil health changes or a specific value according to a function?
Actions #2

Updated by Jake Wit about 2 years ago

Structure of the tests

  • For simplicity's sake, all tests will be run with one firm and one patch of land
  • The first test I do will be a test of the soil health increase and decrease with respect to labor; I'll keep firm competency constant and run a loop increasing the amount of labor, and check to see if the change in soil health is what it should be
  • For the decreasing portion of the test, I'll be sure to include tests that take the health to zero, to make sure the health does not drop below 0
  • I'll also run a similar test where I vary the firm competency but keep labor constant to see if that effect is what it should be
Actions

Also available in: Atom PDF