8000 docs: complete the provenance audit of the packaged formulas, and correct the Hoagland solution molybdenum by rafatahmed · Pull Request #408 · rafatahmed/Flahax · GitHub
[go: up one dir, main page]

Skip to content

docs: complete the provenance audit of the packaged formulas, and correct the Hoagland solution molybdenum - #408

Merged
rafatahmed merged 1 commit into
mainfrom
fix/provenance-audit-390
Nov 30, 2026
Merged

rafatahmed merged 1 commit into
mainfrom
fix/provenance-audit-390

Conversation

@rafatahmed
@rafatahmed rafatahmed commented Nov 30, 2026 •
Copy link
Copy Markdown
Owner

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 solution stores 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). DEFAULT keeps 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.
  • Label bases: the melon "Phosphate 86" is stored as element P, which gives a nutrient charge subtotal of -2.7 %; as phosphate mass it would be +4.9 %. The "Molybdate" labels are stored as Mo.
  • New 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.py pins Hoagland molybdenum 0.01 (written first, watched failing) and adds a test that derives the Hoagland values from solution 1.
  • Changelog (Fixed) and the migration table (now three corrected formulas).

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:

  • 46 test modules, each run alone in batches: every module that references Hoagland, iterates over all formulas, or reads the docs or package data. All pass.
  • A real flahax batch run: Hoagland solution targets and meets Mo 0.01 (status ready); DEFAULT still 0.05.
  • Lint passes.

Notes:

  • Saved recipes for Hoagland solution change when recalculated (stated in the migration guide); the Mo dose is about five times smaller.
  • The PHREEQC fixture was not re-captured: only one formula target changed.

CI: all 29 checks pass.

…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.
@rafatahmed rafatahmed added the documentation Improvements or additions to documentation label Nov 30, 2026
@rafatahmed rafatahmed self-assigned this Nov 30, 2026
@read-the-docs-community
Copy link
Copy Markdown

Documentation build overview

📚 Flahax | 🛠️ Build #36276887 | 📁 Comparing 987e0de against latest (bc50134)

  🔍 Preview build  

3 files changed
± changelog.html
± agronomist/formula-and-products.html
± start/migration.html

@codecov
codecov Bot commented Nov 30, 2026
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (bc50134) to head (987e0de).

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           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rafatahmed
rafatahmed marked this pull request as ready for review November 30, 2026 20:50
@rafatahmed
rafatahmed merged commit ebae022 into main Nov 30, 2026
29 checks passed
@rafatahmed
rafatahmed deleted the fix/provenance-audit-390 branch November 30, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Finish the provenance audit of the packaged formulas' target tables

1 participant

0