Repository navigation
fix: correct Pepper sulfur and iron and Tomato Stage.3 calcium to their sources - #405
Merged
Merged
Conversation
…ir sources (#403, #401) Pepper (Howard Resh) stores the original sulfate 360 as sulfur (360 x 32.06 / 96.06, the conversion the water inputs use) and iron 2.25, the midpoint of the original 1.5 to 3.0. Tomato Stage.3 stores calcium 197, the value in Resh (2022), Table 3.7. Both formulas are now ion balanced, as their sources are.
Documentation build overview
4 files changed± changelog.html± agronomist/formula-and-products.html± reference/manual.html± start/migration.html |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #405 +/- ##
=========================================
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.
NOT READY until CI is green.
Closes #401
Closes #403
Corrects two stored formula targets to their sources:
MOLAR_MASS['S']/ 96.06, the conversion the water inputs use (mix_water.py)Independent check: both formulas were far from ion balance and are now balanced, as their sources are. Pepper goes from -39.5 % to +1.0 %; Stage.3 from +29.4 % to -0.7 %. With the corrected targets, Pepper meets every target in a real
flahax batchrun (status ready) and Stage.3 misses at most 0.77 %.Also changed:
test_guards(the "sulfur deficit" came from S 360),test_grower_journey_reports(two cases use Lettuce 2 for the tiny-miss scenario and Pepper as a fully met formula),test_target_ion_balance(Lettuce General is the unbalanced example, cross-checked with the codebase's atomic masses), andtest_packaged_catalogue(new ion-balance and conversion tests, written first and watched failing), plus the user-guide example (Pepper is balanced).Verified on this branch:
Notes:
test_mix_cli(432 s here),test_ratio_solver_stress(583 s) andtest_grower_journey_catalogue_even(327 s) each exceed five minutes alone; splitting them is separate work.Not yet verified: the CI coverage and Python 3.11 gates.