Repository navigation
Fix time unit label in the RMSD example - #464
qiaobochi040726-source wants to merge 3 commits into
Conversation
|
Notebooks changed:
Review visual diffs and comment on any notebook cell. All comments sync back to this PR. Powered by ReviewNB |
There was a problem hiding this comment.
The unit change is good. Could you please also change the code so that the plots are done over time (with properly labeled axes) instead over frame? Thanks.
Also add yourself to doc/sources/AUTHORS at the end.
|
Thank you for the review! I have addressed both points:
Please take another look when you have a moment. Thanks again! |
orbeckst
left a comment
There was a problem hiding this comment.
Thanks for the updates. On review I found a few more issues. Could you please address the following?
Please also manually check the generated version on RTD https://mdanalysisuserguide--464.org.readthedocs.build/en/464/index.html and proof-read yourself. If something does not look right to you, please fix it.
Thanks!
invalid escape sequence '\A'
Looking at the rendered notebook I see the warning
<>:6: SyntaxWarning: invalid escape sequence '\A'
<>:6: SyntaxWarning: invalid escape sequence '\A'
/tmp/ipykernel_6388/2630904717.py:6: SyntaxWarning: invalid escape sequence '\A'
ax.set_ylabel('RMSD ($\AA$)')
Can you fix this, e.g. by using a utf-8 "Å" character or making the string a Python raw string?
section Custom weights not consistent
I read the Custom weights section and the text does not describe code and graphs. The text says we're doing non-sensical resid weighting but the code does charge weighting. I think the charge-weighting makes slightly more sense. Can you rewrite the text along the lines of
- To show how to use other less commonly used weights, we will use charges.
- Weights have to be non-negative, so we always use
np.abs(ag.charges) - Use these as weights instead of ag.resids.
update metadata at top
Unless the notebook automatically updates the Last updated: December 2022 with MDAnalysis 2.4.0-dev0 line please change it accordingly.
The example builds its results DataFrame with a
Time (ns)column, butR.results.rmsdreports picoseconds, so the table and plots were labelled wrong. Renamed the column toTime (ps)in the four cells that build a DataFrame from it, and in the saved output table, so the rendered page is right too.Didn't rerun the notebook, the numbers and alignment of the printed table are untouched. Closes #438.
📚 Documentation preview 📚: https://mdanalysisuserguide--464.org.readthedocs.build/en/464/