-
Notifications
You must be signed in to change notification settings - Fork 6
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
(Request) Support for molecular XYZs without Lattice key #16
Comments
Good question. I'm not adverse to supporting molecular geometries, just have never needed to. There is already an optional I'm not sure if this can be done only by making changes in this package, but I'm open to a PR which tries to do that if you'd be willing to try it out. It may be that we'd need to change the specification/implementation of the underlying C parser, but that's also possible. Also, you will see in #15 that I'm planning to add an interface to https://github.com/JuliaMolSim/AtomsBase.jl in some form in the near future. I'm not sure how that deals with open boundary conditions either at this point. |
Is it a problem to just provide a trivial cell, or to just ignore the cell with no PBC? Or is the issue that you want to use existing datasets that come without the cell? |
I would support this enhancement because it would mean that some old XYZ files could also be read (ones with empty second lines. It's not complete backwards compatibility because we still require the second line to be a sequence of = |
That's mostly the issue yes, I'm working within a workflow that writes extXYZs from one program and I want to read/manipulate/write them within Julia. It would definitely be possible to prepend/remove the Lattice key as necessary, it would just feel a bit clunky to have to do so. I'm up for looking into the code and seeing if I can get it working solely within the package. For the most part it appears like it would be simple, but I'm not familiar with the C backend so I can't predict how the call to |
Appears to be a simple fix, opened PR #17. |
v0.1.5 tagged and released |
Hi James,
I was just wondering if there would be any interest in making this compatible with extXYZ files that don't include a Lattice key, i.e. for molecular geometries with no inherent unit cell?
I'd really like to use this as a simple, lightweight library for doing some low-level manipulation of molecular xyz files within Julia, but unfortunately the hard requirement for a unit cell to be provided means this package won't work on those files.
Thanks!
The text was updated successfully, but these errors were encountered: