Skip to content
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

Fix ion formula check in ion_or_solid_comp_object of analysis.pourbaix_diagram #4233

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

DanielYang59
Copy link
Contributor

@DanielYang59 DanielYang59 commented Dec 23, 2024

Summary


ELEMENTS_HO = {Element("H"), Element("O")}
Copy link
Contributor Author

@DanielYang59 DanielYang59 Dec 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unlikely breaking, was a public var, but should be a class var 9551b5a

@@ -1075,22 +1131,3 @@ def domain_vertices(self, entry):
list of vertices
"""
return self._pbx._stable_domain_vertices[entry]


def generate_entry_label(entry):
Copy link
Contributor Author

@DanielYang59 DanielYang59 Dec 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a helper function for PourbaixPlotter (as per its docstring), also as far as I'm aware, there is no usage outside this class, so I might make it a private staticmethod instead b2d464b

@DanielYang59 DanielYang59 changed the title Fix ion formula in ion_or_solid_comp_object of analysis.pourbaix_diagram Fix ion formula check in ion_or_solid_comp_object of analysis.pourbaix_diagram Dec 24, 2024
@DanielYang59 DanielYang59 marked this pull request as ready for review December 24, 2024 12:04
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.

Mistake in regex string of ion_or_solid_comp_object leads to example string formula "Na[+]" failing
1 participant