Skip to content
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 filename attribute to MemoryReader & associated tests #1252

Merged
merged 2 commits into from
Mar 22, 2017

Conversation

utkbansal
Copy link
Member

@utkbansal utkbansal commented Mar 22, 2017

Fixes #1027

Changes made in this Pull Request:

  • Adds filename attribute to MemoryReader
  • Adds tests

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

Copy link
Contributor

@jbarnoud jbarnoud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and clean.

@@ -242,10 +242,13 @@ def __init__(self, coordinate_array, order='fac',
dt: float, optional
The time difference between frames (ps). If :attr:`time`
is set, then `dt` will be ignored.
filename: string, optional
The name of the file from which this instance is created
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe state it will otherwise be None

@utkbansal
Copy link
Member Author

@jbarnoud @richardjgowers Updated the docstring.

@richardjgowers
Copy link
Member

Cool, looks solid, thanks!

@jbarnoud jbarnoud merged commit e48153f into MDAnalysis:develop Mar 22, 2017
jbarnoud added a commit that referenced this pull request Mar 22, 2017
I reviewed #1252 too fast and missed a mixup in the filename passed
to the memory reader. The topology filename was passed instead of the
trajectory one. This commit fixes the confusion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants