8000 Add experimental irrigation EC from speciation (McCleskey 2012, M1) by rafatahmed · Pull Request #25 · rafatahmed/Flahax · GitHub
[go: up one dir, main page]

Skip to content

Add experimental irrigation EC from speciation (McCleskey 2012, M1) - #25

Merged
rafatahmed merged 10 commits into
mainfrom
feat/irrigation-ec-m1
Oct 18, 2026
Merged

rafatahmed merged 10 commits into
mainfrom
feat/irrigation-ec-m1

Conversation

@rafatahmed
@rafatahmed rafatahmed commented Oct 18, 2026 •
Copy link
Copy Markdown
Owner

Summary

Experimental M1 of calculated irrigation EC: McCleskey et al. (2012) Eq. 8 applied to FlahaX's own speciation, at 25 °C and I ≤ 0.1 mol/kgw. Python API only; no CLI flag and no grower-facing number.

  • New src/flahax/irrigation_ec.py with calculate_irrigation_ec, calculate_irrigation_ec_from_plan, calculate_ec_from_totals, compare_measured_ec, assay_charge_residual, DeclaredPureWater, IrrigationECResult.
  • McCleskey Table 1 shipped as src/flahax/data/conductivity_mccleskey2012.json, pinned by SHA-256. It is checked against a separately typed fixture.
  • Results are estimated, partial (missing species named, no EC number) or not_supported. Every result carries a full audit record and the qualifier "Accuracy on this fertilizer mixture has not yet been established."
  • In M1, phosphate recipes and most Mg/Ca solutions are partial, because H2PO4-, MgOH+, CaOH+ and charged chelates have no McCleskey coefficient. M2 needs owner decisions O1–O3.
  • Also adds the 2026-10-17 FlahaX vs Horticalc audit with its maintainer review, the design (docs/superpowers/specs/2026-10-18-irrigation-ec-mccleskey-design.md) and the M1 plan.

This branch was cut from ci/pin-actions-by-sha, so it also carries that branch's two unmerged commits (Actions pinned by SHA, 0.4.0 publication record).

Before merge

  • Owner sign-off: check the McCleskey Table 1 transcription against the paper (docs/audit/2026-10-17-flahax-vs-horticalc/review.md, "Owner sign-off").

Test plan

  • Full suite: 195 tests OK locally (PYTHONPATH="src;." python -m unittest discover -s tests -t .)
  • tools/generate_api_reference.py --check and release hygiene tests pass
  • CI green

@rafatahmed
rafatahmed merged commit da46b96 into main Oct 18, 2026
4 checks passed
@rafatahmed
rafatahmed deleted the feat/irrigation-ec-m1 branch October 18, 2026 22:23
@rafatahmed rafatahmed self-assigned this Oct 18, 2026
rafatahmed added a commit that referenced this pull request Nov 7, 2026
Add experimental irrigation EC from speciation (McCleskey 2012, M1)
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.

1 participant

0