-
Notifications
You must be signed in to change notification settings - Fork 661
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
Issue 782 removeflags #2515
Issue 782 removeflags #2515
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2515 +/- ##
===========================================
+ Coverage 90.25% 91.07% +0.81%
===========================================
Files 170 170
Lines 22874 23070 +196
Branches 2989 3028 +39
===========================================
+ Hits 20646 21011 +365
+ Misses 1625 1467 -158
+ Partials 603 592 -11
Continue to review full report at Codecov.
|
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, just a couple of minor docstring suggestions.
package/CHANGELOG
Outdated
* Removed core.flags. Default behaviour (eg pbc, units) now defaults to | ||
the default setting of the flag before removal. If you were using flags | ||
you will now have to supply the flag setting as keyword arguments to | ||
function calls. |
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.
Would it be worth adding the issue number here?
@@ -148,10 +147,8 @@ def __init__(self, filename, n_atoms=None, atoms=None, convert_units=None, | |||
""" |
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.
Whilst convert_units
wasn't part of the __init__
docstring originally, would it be worth adding 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.
This is on the Writer, so this being true would convert inputs to the native units ... for xyz? I'm not sure if XYZ has a native unit? So I'm not going to break anything here, but I'm not sure I want to document the fact that this option exists?
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.
XYZ units are generally in angstroms and that's how most visualization packages interpret them (VMD for example).
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 MDA does seem to assume ps/Angstrom
on read, and the default writer also assume those units on the conversion. I guess the only case I could think of where this might be useful, is if for some reason you created a Universe
with non-base units, and then wanted to use the writer to have a non-ps/Angstrom
write. With the removal of flags, I'm not sure how likely that would be to happen though...
@@ -2090,13 +2089,10 @@ class ReaderBase(ProtoReader): | |||
|
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.
Since these are base readers, would it be worth documenting the slight behaviour change as a versionchanged
?
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 — one minor typesetting comment...
You're a hero, you shall be known henceforth as the Slayer of Ill-Conceived and Misguided Features.
If ``True`` and `compound` is ``'group'``, move all atoms to the | ||
primary unit cell before calculation. If ``True`` and `compound` is | ||
``'segments'`` or ``'residues'``, the center of each compound will | ||
be calculated without moving any :class:`Atoms<Atom>` to keep the | ||
compounds intact. Instead, the resulting position vectors will be | ||
moved to the primary unit cell after calculation. | ||
moved to the primary unit cell after calculation. Default False. |
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.
Typeset False as
``False``
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.
Well, I totally forgot that we also need to kill documentation such as
to highlight periodic (and other) kwargs
@orbeckst ok docs now all done, grepping doesn't show any more flag stuff in the repo |
Thanks go ahead and do what needs to be done. (I’m traveling and on mobile...) |
Fixes #782
Changes made in this Pull Request:
PR Checklist