-
Notifications
You must be signed in to change notification settings - Fork 652
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
lammps.py errors #4458
lammps.py errors #4458
Conversation
Hello @nataliyah123! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-03-31 11:45:59 UTC |
Linter Bot Results:Hi @nataliyah123! Thanks for making this PR. We linted your code and found the following: Some issues were found with the formatting of your code.
Please have a look at the Please note: The |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #4458 +/- ##
===========================================
+ Coverage 93.37% 93.64% +0.26%
===========================================
Files 171 180 +9
Lines 21736 22327 +591
Branches 4012 3917 -95
===========================================
+ Hits 20297 20908 +611
- Misses 952 961 +9
+ Partials 487 458 -29 ☔ View full report in Codecov by Sentry. |
is there any file named lammps.data? |
if take_this_frame not necessary I can shorten the code by directly assigning ts.frame a frame number |
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.
Please check the documentation preview https://mdanalysis--4458.org.readthedocs.build/en/4458/documentation_pages/coordinates/LAMMPS.html#module-MDAnalysis.coordinates.LAMMPS to make sure the code blocks visually look nice.
I don't think it's necessary to add .. doctest::. If it's problematic to add them, just remove them.
@@ -66,22 +66,36 @@ | |||
:class:`~MDAnalysis.topology.LAMMPSParser.DATAParser`) together with a | |||
LAMMPS DCD with "*real*" provide the keyword *format="LAMMPS*":: | |||
|
|||
>>> u = MDAnalysis.Universe("lammps.data", "lammps_real.dcd", format="LAMMPS") | |||
..testsetup:: |
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.
This code block should be placed right after the title level Example: Loading xxx
>>> import MDAnalysis | ||
>>> from MDAnalysis.tests.datafiles import LAMMPSdata2, LAMMPSdcd2 | ||
|
||
..doctest:: |
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.
..doctest:: | |
.. doctest:: |
|
||
..doctest:: | ||
|
||
>>> u = MDAnalysis.Universe(LAMMPSdata2, LAMMPSdcd2, format="LAMMPS") | ||
|
||
If the trajectory uses *units nano* then use :: |
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.
If the trajectory uses *units nano* then use :: | |
If the trajectory uses *units nano* then use |
@yuxuanzhuang I have tested the code on my system and both doctest and html are fine below is the screen shot Document: documentation_pages/coordinates/LAMMPS1 items passed all tests: but I think changes are not reflected on github. please check |
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.
Just a small issue, and the other part looks good to me!
@@ -61,27 +61,39 @@ | |||
|
|||
Example: Loading a LAMMPS simulation | |||
------------------------------------ | |||
.. testsetup:: |
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 can just remove this, what testsetup does is that the code right below it runs without showing it in the documentation.
@yuxuanzhuang I assigned the PR to you, if this is too much please say something. Thanks! |
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.
lgtm!
@yuxuanzhuang please squash merge when you're happy. Condense the commit message into something like
If CHANGELOG or AUTHORS were updated also mention that. See recent commit messages as examples. Thanks! |
Thanks!!! @nataliyah123 |
Partially addresses #3925
Changes made in this Pull Request:
PR Checklist
Developers certificate of origin
📚 Documentation preview 📚: https://mdanalysis--4458.org.readthedocs.build/en/4458/