Repository navigation
feat: add Calmag to the packaged catalogue - #368
Merged
Merged
Conversation
Closes #367 Add Calmag (calcium magnesium nitrate) as a declared blend from the Flaha Agri Tech analysis, with its identity record, a PHREEQC golden case and ADR 0003. Tests that record numbers for the packaged catalogue build it without Calmag.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #368 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 151 151
Lines 17816 17816
Branches 3599 3599
=========================================
Hits 17816 17816
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 #367
What changes
idn-calmag-declared-blend. Nitrate balances the charge in the identity (12.9 % N-NO3 against the declared 13.1 %, because the declared analysis is 1.4 % anion-heavy). The catalogue has 30 products.calmagcase (0.10 g/L, charge balance 1e-14) and registers its five files intests/reference_inventory.json.Effect on recipes
Calmag does not close the calcium shortfalls of Strawberry Drip Irrigation (126.1 of 200 mg/L) or Tomato Stage 3 (278.2 of 400): the solver still needs calcium without nitrate. It does change other recipes (for example Pepper, Lettuce 2, Tomato), so default recipes can differ from 0.7.1 and the CHANGELOG says to recalculate saved recipes. The 0.7.1 benchmark numbers describe the catalogue without Calmag.
Tests
Tests that record numbers for the packaged catalogue (
test_solver_hot_paths,test_cross_version_digits,test_requirement_fit,test_nitrogen_targets,test_report_consistency,test_grower_sheet,test_mix_tui) andexamples/tomato_advanced.pybuild the catalogue without Calmag, so their recorded values stay comparable. No test covers Calmag inside a recipe yet.Verification
outputs/test-runs/2026-11-28-calmag/).