-
Notifications
You must be signed in to change notification settings - Fork 61
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
Error: Lattice matrix undefined. #173
Comments
Can you show me the exact script and output message? |
Here is an example (it doesn't always happen, so I just repeat the random generation 100 times): from pyxtal import pyxtal
my_crystal = pyxtal()
for i in range(0, 100):
my_crystal.from_random(
dim=3, group=14, species=["He"], numIons=[4],
) This is the warning:
|
@Reignbeaux from pyxtal import pyxtal
for i in range(0, 100):
my_crystal = pyxtal()
my_crystal.from_random(3, 14, ["He"], [4])
print(i, my_crystal.valid) Ideally, you should use the structure only when Let me know how it works. |
With your code, I now get the exception edit: Sorry, I was using the wrong environment with the old code... With your changes, it now works perfectly. Thank you very much! |
Great, I am closing this issue now... |
I am using PyXtal to generate atomic crystals of various space groups, and for most cases it works perfectly. However, for roughly 1 in 1000 crystals that I generate, I get the warning "Error: Lattice matrix undefined.". I was so far not able to find out why this happens.
Should I be worried about this? Or is this somehow handled internally? I was thinking about just skipping the structure if this error occurs and retry.
The text was updated successfully, but these errors were encountered: