8000 Every output of one batch agrees: pH path, weights, acid, warnings (#107-#110) by rafatahmed · Pull Request #111 · rafatahmed/Flahax · GitHub
[go: up one dir, main page]

Skip to content

Every output of one batch agrees: pH path, weights, acid, warnings (#107-#110) - #111

Merged
rafatahmed merged 1 commit into
mainfrom
fix/output-consistency
Oct 23, 2026
Merged

rafatahmed merged 1 commit into
mainfrom
fix/output-consistency

Conversation

@rafatahmed
Copy link
Copy Markdown
Owner

Closes #107, #108, #109, #110. Found by generating the owner's session (RO, Tomato Stage.1, 100 L tanks, 10 L acid container, nitric 65 %, pH 6) at depths 1, 2 and 3 with identical answers.

Before After
Sheet pH path water 7 -> after fertilizers 6.71 -> 6 water 7 -> after fertilizers 7.93 -> 6
Report 'go from pH' from pH 6.71 from pH 7.93 (and names the first recipe's 6.71)
Report chemistry mixed 7.93 mixed 7.93
Acid sheet 85.7 mL, report 86 mL 85.7 mL everywhere
Zinc sulfate in the report 0 0.021 g
Hydroxylapatite / iron(II) notes twice each once each
Report tank header, status card '1:100.0', 'ready / requires review / blocked' '1:100', 'review notes before mixing'

#107 root cause: unadjusted_ph is the first recipe without acid; the weighed recipe is the pH plan's refit, which uses less nitrate salt because the acid supplies 16.09 mg/L NO3-N. New summary['ph']['mixed_ph'] (the weighed recipe without its reagent) feeds every 'after fertilizers' pH.

Unchanged: tanks, formulation, chemistry and the selected reagent are identical to before for this session; 524 tests pass (live PHREEQC required).

New systematic test: tests/test_output_consistency.py runs the session once and checks every weight, the acid, the pH path, single warnings and report formatting across the terminal, the sheet at each depth, the report and the summary.

Strict Sphinx build clean; tools/verify_distribution.py PASS; LF.

@read-the-docs-community
Copy link
Copy Markdown

Documentation build overview

📚 Flahax | 🛠️ Build #35341711 | 📁 Comparing b289130 against latest (aac9993)

  🔍 Preview build  

1 file changed
± changelog.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agronomist sheet's pH path shows the first recipe's pH, not the weighed recipe's

1 participant

0