Repository navigation
docs: complete the provenance audit of the packaged formulas, and correct the Hoagland solution molybdenum - #408
Merged
Merged
Conversation
…rect the Hoagland solution molybdenum (#390) Every formula now has a state (confirmed, confirmed with adaptations, candidate source), every adaptation is listed with its source value and reason, and a test keeps the table, the adaptation records and the catalogue in step. Hoagland solution stores molybdenum 0.01, the value in Hoagland and Arnon solution 1 (was 0.05); DEFAULT keeps the upstream 0.05 as a recorded adaptation.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #408 +/- ##
===============
8000
==========================
Coverage 100.00% 100.00%
=========================================
Files 152 152
Lines 18112 18112
Branches 3657 3657
=========================================
Hits 18112 18112
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #390
Completes the provenance audit of the 13 packaged formulas. The issue asked that each row be either confirmed against its source with the page, table and basis recorded, or marked as an adaptation with the reason and the source value beside it, and that the docs table say which.
What changed:
docs/site/agronomist/formula-and-products.md: every formula has a state (confirmed, confirmed with adaptations, candidate source) with a legend; a new "Adaptation records" table lists every stored value that is not the source's own figure, with the source value and the reason beside it (20 rows); the Hoagland paragraph now gives the solution 1 arithmetic; the HydroBuddy note now says 10 of 13 match.Hoagland solutionstores molybdenum 0.01, the value in Hoagland and Arnon solution 1 (printed p.31); it was 0.05. The macronutrients are that solution's molarities rounded to whole mg/L (nitrogen 210.1, potassium 234.6, calcium 200.4, magnesium 48.6, phosphorus 31.0, sulfur 64.1, computed with the codebase's molar masses).DEFAULTkeeps the upstream HydroBuddy value 0.05, recorded as an adaptation. Iron 2.9 has no mg/L figure in the source and is recorded as an adaptation for both.tests/test_formula_provenance_table.py(4 tests): every packaged formula has exactly one row with a known state and the right stored nitrogen; every "confirmed with adaptations" formula is listed in the records and no "confirmed" one is; every stored value in the records equals the catalogue's. I mutated the page in memory five ways (pepper sulfur 360, a wrong state, an unknown state, a wrong nitrogen, a missing row) and each is caught.tests/test_packaged_catalogue.pypins Hoagland molybdenum 0.01 (written first, watched failing) and adds a test that derives the Hoagland values from solution 1.Limits, stated on the page: the three staged tomato formulas stay "candidate source". The original stage tables were searched for in the Resh (2022) book and on the web and not found; the only online copies are spreadsheets that repeat HydroBuddy's values. Each stored value that differs from the candidate row is listed in the adaptation records.
Verified on this branch:
flahax batchrun:Hoagland solutiontargets and meets Mo 0.01 (status ready);DEFAULTstill 0.05.Notes:
Hoagland solutionchange when recalculated (stated in the migration guide); the Mo dose is about five times smaller.CI: all 29 checks pass.