-
Notifications
You must be signed in to change notification settings - Fork 658
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
Some Modules improperly iterate over trajectory, documentation error #914
Comments
@jdetle, I edited your excellent issue report (added check list marks, added section "wrong defaults", and added missing word "not"). |
@orbeckst Do you happen to know where the C code for _dcdmodule exist prior to compilation? |
Welcome to MDAnalysis
|
@orbeckst I laughed. It looks like we will have to change the dcd code to reflect the proper slicing behavior. I assume I have to do |
|
@orbeckst is there an easy way to print debugging statements? Currently printf is causing a segfault. |
😩 |
It builds character to write C code from time to time. (Regarding #914 (comment) please explain for the slower folks in the audience (=me), please.) |
Sorry I was just whining that it managed to document 4 out of the 5 variables... |
link to groups conversation here: https://groups.google.com/forum/#!topic/mdnalysis-devel/uoAoJz8aKtA
default start, stop, step should always be None, None, None,
trajectory.check_slice_indices(None, None, None)
returns 0, n_frames, 1, as it should.Expected behaviour
As an example:
In
rms/RMSF
default stop value=-1 instead of None. This is meant to run over an entire trajectory.Actual behaviour
RMSF stops on the frame before the last. This isn't apparent because the np array does some broadcasting over all values in the arras. RMSF should not throw a NameError if operated on a single frame as well.
Code to reproduce the behaviour
Mistakenly used and improperly documented in DCD:
wrong defaults
analysis/rms.py
(RMSF)Improperly documented in:
coordinates/base.py
:check_slice_indices
~line 1226analysis/contacts.py
: lines 402 and 499analysis/diffusionmap.py
: line 232analysis/polymer.py
: line 64The text was updated successfully, but these errors were encountered: