-
Notifications
You must be signed in to change notification settings - Fork 1
Add pyxtal wrapper #24
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
Conversation
But you can use the |
structuretoolkit/build/pyxtal.py
Outdated
from pyxtal import pyxtal as _pyxtal | ||
from pyxtal.msg import Comp_CompatibilityError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from pyxtal import pyxtal as _pyxtal | |
from pyxtal.msg import Comp_CompatibilityError |
ValueError: if `species` and `num_ions` are not of the same length | ||
ValueError: if stoichiometry and symmetry group are incompatible and allow_exceptions==False or only one structure is requested | ||
""" | ||
if len(species) != len(num_ions): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if len(species) != len(num_ions): | |
from pyxtal import pyxtal as _pyxtal | |
from pyxtal.msg import Comp_CompatibilityError | |
if len(species) != len(num_ions): |
One goal of the |
Co-authored-by: Jan Janssen <jan-janssen@users.noreply.github.com>
Co-authored-by: Jan Janssen <jan-janssen@users.noreply.github.com>
[I merged (and rebased) some of your changes before the force push]
I see the goal, but what about this way? This only conditionally defines the function and raises a warning if pyxtal is missing, so that users see it early and cannot even attempt to call the missing function. No strong feeling either, also happy to implement your original solution if you want it consistent everywhere. Does sound like we want |
|
Merge main
Updates to pyxtal
No description provided.