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

overly restrictive data file suffix requirements #23

Closed
bernstei opened this issue Sep 30, 2022 · 12 comments
Closed

overly restrictive data file suffix requirements #23

bernstei opened this issue Sep 30, 2022 · 12 comments
Assignees

Comments

@bernstei
Copy link
Collaborator

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", which ase.io.read() handles without a problem.

@ilyes319
Copy link
Contributor

We definitly should add an assert including other extensions. What other extensions can it support?

@bernstei
Copy link
Collaborator Author

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?

@bernstei
Copy link
Collaborator Author

@davkovacs
Copy link
Collaborator

You are completely right. This should be much better handled.

@ilyes319
Copy link
Contributor

I am fine with removing the asserts. @davkovacs What do you think?

@davkovacs davkovacs self-assigned this Sep 30, 2022
@davkovacs
Copy link
Collaborator

I can fix this.

@davkovacs
Copy link
Collaborator

d569918

@davkovacs
Copy link
Collaborator

I will close this when you say the fix is okay.

@bernstei
Copy link
Collaborator Author

bernstei commented Sep 30, 2022

I put in some comments on the commit, but there's no corresponding PR yet.

@davkovacs
Copy link
Collaborator

Can I close this issue?

@bernstei
Copy link
Collaborator Author

Fine by me, yes.

@ilyes319
Copy link
Contributor

Closing, looks fine.

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

No branches or pull requests

3 participants