Repository navigation
fix: refuse water files that cannot describe a real water - #480
Merged
Merged
Conversation
|
📖 4 files modified
Preview · build overview · Flahax · built Dec. 3, 2026, 3:54 p.m. UTC |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #480 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 155 155
Lines 18334 18362 +28
Branches 3708 3713 +5
=========================================
+ Hits 18334 18362 +28
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 #476
Closes #477
Closes #478
Closes #479
Part of #437 (full batch runs on malformed water files).
Summary
The same large-number refusal covers
mg_per_litre, detection limits and the solvent basis (#477). The 2 kg bound reusescomposition.MAX_MG_PER_L(a litre of solution weighs less).Evidence
water_mass_kg998 per 1 Lready, EC 0.0039 mS/cm, 318.1 mL acid, exit 0density_kg_per_litre998ready, exit 0idwith ESC / newline / bidi overridebelow_detection: []tests/test_water_file_inputs.pyfailed on unchanged code (19 failures, 4 errors) and passes.tools/verify_distribution.pypass.Remaining limit
Checked against earlier work
flahax mixstore a slug asid, so they are unaffected.Merge Danger
Door: two-way
Blast Radius: inputs
A hand-written water file with a non-string or hidden-character
id, a non-objectbelow_detection, or a basis above 2 kg/L now stops with a message instead of calculating.