Skip to content

MPAqueousCompatiblity: compute hydrate correction using reduced rather than full composition #2886

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 2 commits into from
Jun 2, 2023

Conversation

rkingsbury
Copy link
Contributor

Summary

Small change to the way MaterialsProjectAqueousCompatibility corrects energies for materials containing H2O.

As described by a user on MatSci, the current way of detecting whether a material contains 'H2O' can lead to false positives for formulas like Li2O2H2, causing this material to be corrected as if it were a hydrate when in fact it is not.

Here, I change the detection of hydrates to be based on reduced_composition instead of composition to avoid such false positives.

Tests appear to pass, but flagging @montoyjh and @as2362 in case there are concerns about how this will impact Pourbaix Diagrams. This should cause the energies of some -OH phases to change a bit because they won't receive the hydrate correction.

@janosh janosh added the fix Bug fix PRs label Mar 28, 2023
@rkingsbury rkingsbury marked this pull request as ready for review May 15, 2023 18:30
@rkingsbury
Copy link
Contributor Author

Since no concerns / comments have been raised, I'm going to move this out of WIP status.

@Andrew-S-Rosen
Copy link
Member

@janosh soubds like this is ready to go.

@janosh
Copy link
Member

janosh commented Jun 2, 2023

@arosen93 Thanks for the ping!

@rkingsbury Thanks for adding tests! 👍 Merging now.

@janosh janosh merged commit ccb373d into materialsproject:master Jun 2, 2023
@rkingsbury rkingsbury deleted the hydratecorr branch October 10, 2024 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants