You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not super familiar with git workflows and pull requests so I have sent this as an issue. Please advise if you think this is something that should be fixed and if you wish me to do a pull request :)
Python version
Python 3.12.3
Pymatgen version
2024.11.13
Operating system version
Windows 10
Current behavior
The following code leads to an error (ValueError: + is an invalid formula!)
Even though the definition of ion_or_solid_comp_object states that the argument string should be formatted as 'Na[+]'
In it's current form, the string needs to be '[+]Na' in order for it to work:
Expected Behavior
If 'Na[+]' is the desired string format, the definition of ion_or_solid_comp_object should be modified
L398 of pourbaix_diagram.py is currently:
https://github.com/materialsproject/pymatgen/blob/da607e86f9ce8aec942067c6c1a4fda6e04915dd/src/pymatgen/analysis/pourbaix_diagram.py#L398C18-L398C19
I suggest replacement with
I am not super familiar with git workflows and pull requests so I have sent this as an issue. Please advise if you think this is something that should be fixed and if you wish me to do a pull request :)
Minimal example
Relevant files to reproduce this bug
No response
The text was updated successfully, but these errors were encountered: