-
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
Docs: Add example of LammpsCalculation
with script
input
#74
Conversation
Note that I haven't been able to actually run and test this as I don't have a LAMMPS env available atm. |
Codecov Report
@@ Coverage Diff @@
## develop #74 +/- ##
========================================
Coverage 87.36% 87.36%
========================================
Files 17 17
Lines 1369 1369
========================================
Hits 1196 1196
Misses 173 173
Flags with carried forward coverage won't be shown. Click here to find out more. |
e6c5f48
to
f0afca5
Compare
"""Submission of the calculation. | ||
|
||
:param script: complete input script to be used in the calculation | ||
:type script: orm.SinglefileData |
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.
You don't need types in docstrings, now there is annotations
) | ||
|
||
# Run the aiida-lammps calculation | ||
submission_node = main( |
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.
Seems a bit arbitrary to have part of the script as a function, but not the end of the world
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.
Thanks for the review. I agree but I was just keeping with the style of the other examples. I would personally also simplify and improve them, but didn't want to do this in this PR and create an example that is different from all the others in style.
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.
Yep no worries 👍
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.
Yes I think that the examples and documentation need to be improved quite a bit before release. I just thought it would be good to have a baseline where to start. I'll make an issue about that so that we can keep track of it.
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.
So let's merge this one and then fix all of the examples in one go to make sure they are consistent
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.
For me it is okay to merge, unless @chrisjsewell has strong feeling about it I think it can be done, and then we can focus on the documentation/fixing the examples to be more consistent.
Fixes #71