-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add the LammpsRawCalculation
and LammpsRawParser
plugins
#80
Conversation
I added a separate parser plugin because the Alternatively, we could try to make the |
5fa2b71
to
3828af1
Compare
These `CalcJob` and `Parser` plugins provide a bare-bones interface to running any LAMMPS calculation. The `CalcJob` just requires the `script` input which takes a complete LAMMPS input script. The `files` namespace can be used to add additional input files to the working directory.
3828af1
to
3632a3c
Compare
Codecov Report
@@ Coverage Diff @@
## develop #80 +/- ##
===========================================
+ Coverage 88.80% 89.11% +0.31%
===========================================
Files 17 19 +2
Lines 1384 1461 +77
===========================================
+ Hits 1229 1302 +73
- Misses 155 159 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. One question is it possible to somehow parse the trajectories? I think that the log file and the trajectories are what most users will be interested in.
ping @sphuber , did yo have a chance to look at my question? Otherwise I think this is ready to merge if there is no way to parse the trajectory. |
Didn't have the time yet, but I just checked and don't think it is possible by default because not all scripts print trajectory data that can be parsed. Take for example this benchmark script of the LAMMPS website itself: https://www.lammps.org/inputs/in.lj.txt It will produce the two output text files I think that if you don't explicitly instruct LAMMPS to print it in the input script, it doesn't print it by default? And not sure if there is a default output format that we can have the parser try and detect. I am not familiar enough with LAMMPS to know in what ways trajectory info can be printed out. |
I think that you are right, if one does not set the One could try checking but considering that the script could assign any name or any format to the trajectory it would be basically impossible (unless one sets it somewhere in the setting maybe?) to know what file is the trajectory. Worst case it should be possible to modify the list of retrieved files at submission time right? Of that way the user could specify which files should be put in the |
Exactly, they can also do this and then parse manually with a |
I also see that the documentation is failing. It is complaining about the docstring in the |
For my part if you figure out the mysterious doc failure, I'm all for merging. What do you think @chrisjsewell ? Does this address the concerns you had? |
54f4049
to
814453b
Compare
It makes no sense to me whatsoever, because the |
Yeah that was my thought, but I was wondering if I was going even more blind. Thanks for checking! @chrisjsewell unless you object I think we should merge this, probably today, since I think it is pretty ready. |
@sphuber I think that there are no objections to this PR so I'll merge it. |
These
CalcJob
andParser
plugins provide a bare-bones interface to running any LAMMPS calculation. TheCalcJob
just requires thescript
input which takes a complete LAMMPS input script. Thefiles
namespace can be used to add additional input files to the working directory.