Repository navigation
refactor: split grower_report into summary, wording, format and HTML modules - #321
Merged
Merged
Conversation
…ort_html and batch_summary A pure move: no key, wording or output changes. The reason and row helpers lose their leading underscore because other modules import them. All importers, tests and the API reference follow.
…try and EC, tank plan, formulation, assumptions and identity
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #321 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 142 145 +3
Lines 17406 17441 +35
Branches 3539 3539
=========================================
+ Hits 17406 17441 +35
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 #320.
grower_report.py(2,129 lines) is deleted and split intoreport_format(shared formatters),result_wording(reasons, qualifications, reagent, limit, solubility and dose rows),report_html(render_report,render_batch_sheet) andbatch_summary(summarize_batch, now calling named steps for the pH record, chemistry and EC, tank plan, formulation, assumptions and identity).summarize_batch,render_reportandrender_batch_sheetimport fromflahaxas before.Verification: six
flahax batchscenarios (including a blocked one) were captured onmainand compared after the move and after the step split: 24 files identical once 64-hex hashes are masked. The only raw differences arecalculation_identity.result_id,source_sha256andexport_identity.sha256, which hash the package source. Every runnable test module passes;test_grower_journeywas run test by test.test_file_headersfails the same 434 cases asmainon Windows. Not run locally: the slow ratio modules (they import nothing changed), and the pre-push script (over 5 minutes). The PHREEQC fixture is not re-captured: no chemistry changed.