-
Notifications
You must be signed in to change notification settings - Fork 24
Fix get salt dict type #258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
3ed21da
Reconcile type hints
ugognw b161b22
Resolve mypy errors
ugognw 8b8acf6
Update docstring
ugognw 42707e0
Add regr. tests for Solution.component value types
ugognw 5697b98
Store Salt in output of Solution.get_salt_dict
ugognw 6c10fc7
Update changelog
ugognw 4d57419
Clarify docstring
ugognw a093ba7
Make pyEQL compatible with Solution.get_salt_dict
ugognw 07906e1
Remove conditional expression
ugognw 5fa5a31
Refactor type tests; make test cond stricter
ugognw 4dd8b1d
Remove components unit tests; loosen type check
ugognw 32333ae
Add name to AUTHORS.md
ugognw 2b56014
Iterate over dict values view
ugognw 223b00b
Remove list_salts
ugognw 0e05603
Update CHANGELOG
ugognw a3ee990
Add test case for first if branch in while loop
ugognw f6de3eb
Remove unnecessary test case
ugognw b994bf9
Revert "Remove conditional expression"
ugognw ae6bfd4
Fix docstring
ugognw 9be76c0
Consolidate/expand get_salt_dict tests
ugognw 149982c
Refactor/document/augment unit tests
ugognw 15275ab
module-level vars for params; refactor fixtures
ugognw d9ff03f
Annotate salt_ratio fixture
ugognw 2f6871e
Clarify parametrization note; add new cutoff
ugognw fce8599
Only test for salt order in multisalt solution
ugognw a5cd97b
Update requested fixtures and parametrizations
ugognw d3ee331
Permit small error in concentration (abstol=1e-16)
ugognw 3d937ed
Reduce parametrization for multisalt solutions
ugognw 3fdbd80
Move test setup for logging message to fixture
ugognw 5c3d530
Fix salt concentration bug with polyvalent ions
ugognw d146010
Update changelog
ugognw 2a46439
Add more fixtures; fix tests; adjust salt_ratio
ugognw 2da5c51
Parametrize test_should_order_salts_by_amount
ugognw 5c428aa
Consolidate fixture
ugognw ebc3e45
Reduce cation/anion_scale
ugognw d305d8a
Expand test suite for cutoff parameter
ugognw a1933df
Refactor get_salt_dict
ugognw 6544abb
Edit get_salt to return None if water is only salt
ugognw d7ab2cc
Fix StreamHandler type hints
ugognw 5b68c96
Update changelog
ugognw 73b1261
NativeEOS/Solution.get_salt edits: .get_salt_dict
ugognw 1671d1e
Implement cutoff in units of moles
ugognw 1cdc3dd
Remove test corresponding to undesired behaviour
ugognw f26679a
Improve fixture documentation
ugognw 385468a
Wrap type hint in string to appease python3.10
ugognw 2dbc0d7
temp: hack abs tolerance
ugognw 490415e
Add parametrization for salt_conc == cutoff
ugognw 292ff37
Merge branch 'main' into fix-get-salt-dict-type
ugognw 1f63b79
Refactor tests
ugognw 41b026b
Tests: refactoring, (de-)parametrization
ugognw 7018785
Set salt dict values at once; suppress ruff errors
ugognw de7cd82
Consolidate fixtures in conftest.py
ugognw 44e5d46
Implement cutoff in mol/kg
ugognw 1668cbe
Add salt_conc_units fixture
ugognw 3c88806
Adapt test for mol/kg cutoff
ugognw 5fd50d9
Merge branch 'main' into fix-get-salt-dict-type
ugognw 3fb4687
Expand and test doctest
ugognw 06e8982
Move salt_dict fixtures to salt matching tests
ugognw 735c0ae
Reduce default cutoff to 1e-3
ugognw d1755c6
Calculate concentration using solvent mass
ugognw 6bd5ffa
Update docstring
ugognw 922e511
Fix bug related to adding solutions + unit tests
ugognw 2408158
Remove atol hack
ugognw dee5e5a
Concretize new NativeEOS method behaviour w/ tests
ugognw 64df541
Use correct log level
ugognw 4feaab0
Temporarily upd. test values; solute vol. note
ugognw 39f73e0
Exclude HOH from solute pairs
ugognw 5cc5f6f
Remove test logic excluding tests with HOH salt
ugognw e4d03a9
Fix activity coefficient bug
ugognw 6a8a0ed
Add missing alphas fixture
ugognw b33712a
Clean up signature
ugognw d4a9da9
Add unit tests for NativeEOS.get_solute_volume
ugognw 584ed7b
Fix type hints
ugognw cc5c565
Fix solute volume bug for divalent salts
ugognw cf8a3e9
Update changelog
ugognw 48cb2a3
Fix typo
ugognw 482f1db
Update doctest to clearly illustrate functionality
ugognw 00b809f
Add tests for salt matching 2:3 and 3:2 valent salts
ugognw 58e2245
Consolidate changelog edits
ugognw 7fac892
Fix typo; link PR
ugognw 5345e73
Merge branch 'main' into fix-get-salt-dict-type
rkingsbury b496133
Implement internal cutoff to avoid rounding errors
ugognw 37439e5
Test that element oxi states are treated different
ugognw a0cc4c1
Merge branch 'main' into fix-get-salt-dict-type
rkingsbury 8eef992
Merge branch 'main' into fix-get-salt-dict-type
rkingsbury File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.