-
Notifications
You must be signed in to change notification settings - Fork 196
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
overly restrictive data file suffix requirements #23
Comments
We definitly should add an assert including other extensions. What other extensions can it support? |
Tens of them, but not all support quantities such as energies/forces/etc. And anyway, why an assert? Why not let it raise an exception if it can't handle it? |
You are completely right. This should be much better handled. |
I am fine with removing the asserts. @davkovacs What do you think? |
I can fix this. |
I will close this when you say the fix is okay. |
I put in some comments on the commit, but there's no corresponding PR yet. |
Can I close this issue? |
Fine by me, yes. |
Closing, looks fine. |
Is there a particular reason why
load_from_xyz()
restricts the file suffix to".xyz"
and passes a format explicitly, rather than just letting ASE do what it can when reading? This breaks files that are named".extxyz"
, whichase.io.read()
handles without a problem.The text was updated successfully, but these errors were encountered: