Repository navigation
refactor: public names for the helpers other modules import - #328
Merged
Merged
Conversation
digest, package_sources, recipe_report, diagnose, charge_report, provenance, lstsq, blend_recipe, judge_candidate, check_record, required_text, within_bound, weighed_recommendation, profile_doses, check_materials and product_sources keep their module and their code; they gain docstrings where they had none.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #328 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 148 148
Lines 17464 17464
Branches 3539 3539
=========================================
Hits 17464 17464
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 #327.
Sixteen helpers that other modules imported through a leading underscore are renamed without it, each kept in its own module:
canonical_result.digestandpackage_sources;engine.recipe_report,diagnose,charge_report,provenanceandlstsq;ph_adjustment.blend_recipeandjudge_candidate;stock_evidence.check_record,required_textandwithin_bound;evaluated_remedies.weighed_recommendation;joint_problem.profile_doses;product_conversion.check_materials;ratio_products.product_sources. The ones without a docstring gain a one-line one (the repo requires it on public functions).flahax; the API reference is unchanged._text,_sourcesand_reportalso exist as unrelated private functions elsewhere and are untouched. 34 files; tests that import or patch the old names are re-pointed with no assertion changed.Left private on purpose: the 20 underscore names that only tests import (for example
engine._fit_within,engine._simplify,grower_sheet._reagent_card,mix_results._nutrient_rows,ph_adjustment._couple,irrigation_ec._ec_from_state). Making those tests use public interfaces is a separate, larger change.Verification: the nitrogen snapshot (48 files) and the batch and mix snapshot (31 files) from
mainare identical (64-hex hashes masked). Every runnable test module passes;test_grower_outputs,test_mix_cli,test_ph_inputsandtest_grower_journeywere run test by test.test_file_headersfails the same 434 cases asmainon Windows. Not run locally: the slow ratio modules and the pre-push script (over 5 minutes). No chemistry changed, so the PHREEQC fixture is not re-captured.