-
Notifications
You must be signed in to change notification settings - Fork 664
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 dump reader #1889
Lammps dump reader #1889
Conversation
Btw, we can't merge this into a 0.18.1 because it is a new feature. Do you want to hammer out a quick 0.18.1 and then move forward to 0.19.0 or 1.0.0? |
@orbeckst yeah one day I'll manage to get a patch release out. There's no point holding this back just so we can have an X.1 release, if this gets finished and merged it'll force 19.0 I guess. We should have a release soon |
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.
semantic versioning and testing compressed files
Will automatically convert positions from their scaled/fractional | ||
representation to their real values. | ||
|
||
.. versionadded:: 0.18.1 |
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.
Has to be 0.19.0 because it is a new feature.
self._file.close() | ||
|
||
def _read_frame(self, frame): | ||
self._file.seek(self._offsets[frame]) |
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.
Does seek
work on compressed files?
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.
Apparently yes, we test seeking and reading which relies on this
|
||
Only reads atom ids. Sets all masses to 1.0. | ||
|
||
.. versionadded:: 0.18.1 |
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.
change to 0.19.0
assert ts.frame == i | ||
assert ts.data['step'] == i * 500 | ||
|
||
def test_seeking(self, u, reference_positions): |
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 also test compressed files: zip, gzip, bz2
|
||
|
||
class TestLammpsDumpReader(object): | ||
@pytest.fixture() |
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 could save your data file as bz2 compressed and then create fixtures that create the uncompressed, gz, and zip versions for the test.
Can you please fix the docs https://travis-ci.com/MDAnalysis/mdanalysis/jobs/123399600 and the linter is also unhappy. |
@richardjgowers before you merge this, consider if you don't want to push out a quick 0.18.1 – we had two users already complaining about #1872 . If we move to 0.19.0 then invariably it will take much longer to get a new release out. |
Releasing a 19.0 is the same effort as a 18.1. No reason why we can’t do a
skinny 19.0 / no reason in holding back features.
…On Fri, May 11, 2018 at 3:29 PM, Oliver Beckstein ***@***.***> wrote:
@richardjgowers <https://github.com/richardjgowers> before you merge
this, consider if you don't want to push out a quick 0.18.1 – we had two
users already complaining about #1872
<#1872> . If we move to
0.19.0 then invariably it will take much longer to get a new release out.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1889 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI0jB8iNGbTui77Wq6PJbVyfCiIxbLYkks5txeawgaJpZM4T0K5f>
.
|
Fair enough.
… On May 11, 2018, at 12:31 PM, Richard Gowers ***@***.***> wrote:
Releasing a 19.0 is the same effort as a 18.1. No reason why we can’t do a
skinny 19.0 / no reason in holding back features.
|
I agree that we should release soon though
On Fri, May 11, 2018 at 3:33 PM, Oliver Beckstein <[email protected]>
wrote:
… Fair enough.
> On May 11, 2018, at 12:31 PM, Richard Gowers ***@***.***>
wrote:
>
> Releasing a 19.0 is the same effort as a 18.1. No reason why we can’t do
a
> skinny 19.0 / no reason in holding back features.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1889 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AI0jByggSYmutgfJMwsjIP0udKE-m46Kks5txeefgaJpZM4T0K5f>
.
|
Fixes #1888
Changes made in this Pull Request:
Still needs docs, tests for a triclinic system