-
Notifications
You must be signed in to change notification settings - Fork 15
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
Alternative lammps parse #658
Conversation
Pull Request Test Coverage Report for Build 3095441284
💛 - Coveralls |
Based on this I've found a version that is even more efficient, will push it when I have cleaned it up. In the meantime feel free to merge #657, so you don't need to wait for me. |
Using a for loop could be an issue performance wise, is it possible to solve this with arrays as @samwaseda did before? |
I am not sure what @samwaseda did, but the previous implementation read in the whole file into memory and then did multiple list comprehensions and initialized seperate StringIO and DataFrame instances for each line, so I assume this is a improvement already. |
@pmrv should I merge this or do you want to create a PR for your version? |
Can we still do a set of benchmarks before we merge these changes? I have the feeling we are moving back and forth with the LAMMPS parser, so I would like to have clear reasoning why we choose one implementation over another. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
1895113
to
9f3db55
Compare
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
up |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
At this point, let's just merge this and revisit with pymatgen parser at some point in the future. |
Another approach to parsing without readlines() and multiple loops
EDIT (@liamhuber -- correct if I'm wrong about this, Niklas): Intended to solve #671