-
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
Adds Reader.timeseries #1400
Adds Reader.timeseries #1400
Conversation
So Encore uses |
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.
The deprecations should be merged with #1403 (I can do that); the new trajectory.timeseries
functionality is a new feature and has to go in 0.17.0.
@@ -1461,6 +1461,60 @@ def __repr__(self): | |||
natoms=self.n_atoms | |||
)) | |||
|
|||
def timeseries(self, asel=None, start=None, stop=None, step=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.
This is a new feature for trajectory readers. It cannot go into a patch release. It has to be in 0.17.0.
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.
Ok, I'll bump this into 0.17 then
@@ -578,6 +579,7 @@ def timeseries(self, asel=None, start=None, stop=None, step=None, skip=None, | |||
# XXX needs to be implemented | |||
return self._read_timeseries(atom_numbers, start, stop, step, format) | |||
|
|||
@deprecate(message="This method will be removed in 0.17") |
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.
All the deprecations can go in now.
I somehow missed your PR and did the reST deprecations in PR #1403
@richardjgowers I cherry-picked your first two commits onto #1403 |
@@ -17,6 +17,9 @@ mm/dd/yy | |||
|
|||
* 0.16.2 | |||
|
|||
Deprecations | |||
* deprecated core.Timeseries module (Issue #1383) |
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 needs to be moved up the timeline or removed right?
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.
Yeah it's leftover from when this also did the deprecation
# do we need copy in this case? | ||
coordinates[i] = ts.positions[atom_numbers].copy() | ||
|
||
return coordinates |
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 not implementing the format
keyword argument. I guess you can copy the code I use in libdcd for this. There are also a lot of tests for it right now.
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.
And yeah, I'll have to deal with that in this PR too
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.
And we wanted to change the format
kwarg to order
.... #1400 (comment)
step : int (optional) | ||
Step size for reading; the default ``None`` is equivalent to 1 and means to | ||
read every frame. | ||
format : str (optional) |
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.
btw I'm for naming this option order
format is confusing with the buildin
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.
See #1063 where this was already mooted.
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.
See #1453 for the issue.
- updated format -> order kwarg - updated docs - note: general reader.timeseries only supports order="FAC" at the moment - CHANGELOG
Fixes partially #1383
Changes made in this Pull Request:
core.Timeseries
classestimeseries
method to ProtoReaderPR Checklist