8000 Accept printed supplier labels: 1 % charge limit (#93) by rafatahmed · Pull Request #96 · rafatahmed/Flahax · GitHub
[go: up one dir, main page]

Skip to content

Accept printed supplier labels: 1 % charge limit (#93) - #96

Merged
rafatahmed merged 1 commit into
mainfrom
fix/label-charge-tolerance
Oct 22, 2026
Merged

rafatahmed merged 1 commit into
mainfrom
fix/label-charge-tolerance

Conversation

@rafatahmed
Copy link
Copy Markdown
Owner

Fixes #93 (owner decision 2026-10-23: 1 %).

Problem

A supplier label is checked against its chemical by its charge balance. The limit was 0.1 %, so Yara's printed YaraLiva Calcinit label (N-NO3 14.4 %, N-NH4 1.1 %, CaO 26.3 % = Ca 18.80 %) was refused at -0.565 %. Rounding the printed values alone can move the balance by up to 0.44 %; the rest is the commercial grade not being the pure salt.

Change

  • The limit is 1 % (materials._CHARGE_RESIDUAL_LIMIT_PERCENT), now the single value used by both supplier grades and materials defined by formula or ions (material_chemistry imported its own copy).
  • A one-point typing error (Ca 19.8 % for 18.8 %) moves the balance by about 2 % and is still refused (identity_inconsistent).
  • USER_GUIDE.md error table and CHANGELOG updated.

Behaviour changes to note

  • An old magnesium nitrate analysis (N 11.0 %, Mg 9.65 %; residual 0.55 %) is no longer flagged; its test now pins that, and a one-point Mg error that is flagged.
  • The EC screening estimate keeps its own, separate 0.1 % assay gate: for such a label the EC is reported "not supported" (measure it), not estimated.

Validation

503 tests with live PHREEQC required; strict Sphinx build clean; tools/verify_distribution.py PASS; LF.

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

Documentation build overview

📚 Flahax | 🛠️ Build #35340089 | 📁 Comparing 305fea4 against latest (2e0545f)

  🔍 Preview build  

2 files changed
± changelog.html
± guide/manual.html

@rafatahmed
rafatahmed merged commit e1b77d0 into main Oct 22, 2026
6 checks passed
@rafatahmed
rafatahmed deleted the fix/label-charge-tolerance branch October 22, 2026 23:43
@rafatahmed rafatahmed self-assigned this Oct 23, 2026
rafatahmed added a commit that referenced this pull request Nov 7, 2026
Accept printed supplier labels: 1 % charge limit (#93)
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.

Grade charge check refuses correctly printed labels (Yara Calcinit: residual -0.56 % vs 0.1 % limit)

1 participant

0