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

Docs: Add example of LammpsCalculation with script input #74

Merged
merged 1 commit into from
May 14, 2023

Conversation

sphuber
Copy link
Member

@sphuber sphuber commented May 8, 2023

Fixes #71

@sphuber sphuber requested a review from JPchico May 8, 2023 10:52
@sphuber
Copy link
Member Author

sphuber commented May 8, 2023

Note that I haven't been able to actually run and test this as I don't have a LAMMPS env available atm.

@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Merging #74 (cfac086) into develop (cfac086) will not change coverage.
The diff coverage is n/a.

❗ Current head cfac086 differs from pull request most recent head f0afca5. Consider uploading reports for the commit f0afca5 to get more accurate results

@@           Coverage Diff            @@
##           develop      #74   +/-   ##
========================================
  Coverage    87.36%   87.36%           
========================================
  Files           17       17           
  Lines         1369     1369           
========================================
  Hits          1196     1196           
  Misses         173      173           
Flag Coverage Δ
pytests 87.36% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@sphuber sphuber force-pushed the fix/docs-lammps-calculation-script-example branch from e6c5f48 to f0afca5 Compare May 8, 2023 11:14
"""Submission of the calculation.

:param script: complete input script to be used in the calculation
:type script: orm.SinglefileData
Copy link
Member

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(
Copy link
Member

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

Copy link
Member Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep no worries 👍

Copy link
Collaborator

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.

Copy link
Member Author

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

Copy link
Collaborator

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.

@sphuber sphuber merged commit b742605 into develop May 14, 2023
@sphuber sphuber deleted the fix/docs-lammps-calculation-script-example branch May 14, 2023 11:41
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

Successfully merging this pull request may close these issues.

3 participants