-
Notifications
You must be signed in to change notification settings - Fork 647
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
Rewrite Parsers #572
Comments
Is this really easy for a newcomer or "just" easy for someone in @MDAnalysis/coredevs ? |
I think I called it easy because it's (mostly) just filling numpy arrays with stuff from the file, rather than filling Atom objects. So it's just converting the existing parsers really. |
What is the status of the tests? Are they still relevant? I am mostly concerned about |
Long story short, the current tests aren't very good because they need to create a Universe. The new I'll try and get a new test template done soon, but it will likely just have to inspect each of the numpy arrays inside each Attribute in the Topology object. If you want to look at doing TPR, on the issue-363 branch, GROParser is a fairly good example of what needs to be done. |
@richardjgowers Quick remark: it may be good to list the attributes a child of |
See MDAnalysis#572 Some other changes where also done: * `MDAnalysis/core/__init__.py` import `selection` rather than `Selection` following the module renaming in commit 78abe4e * Add messages when some assertions fail in `MDAnalysisTests/topology/base.py`
See MDAnalysis#572 Some other changes where also done: * `MDAnalysis/core/__init__.py` import `selection` rather than `Selection` following the module renaming in commit 78abe4e * Add messages when some assertions fail in `MDAnalysisTests/topology/base.py`
@richardjgowers clearly you had a relaxing vacation. :D |
Wasn't too bad in the end :D We need to get the benchmarks up really, show everyone why we're even bothering to get this done |
Do you want help on that front? Did you check if the performance of any of these parsers improved from these changes alone? |
Yeah I was going to add the select_atoms benchmarks in too, so if you could On Sat, 19 Dec 2015 17:57 David Dotson notifications@github.com wrote:
|
Oh, and I've not checked individual parsers, but I expect none will be On Sun, 20 Dec 2015 08:40 Richard Gowers richardjgowers@gmail.com wrote:
|
@richardjgowers I'll throw it up as a gist today. Any selections in particular you think showcase the best the new behavior? Also, on which system? |
Here's the link: https://gist.github.com/dotsdl/0e0fbd409e3e102d0458 Haven't added selections yet, but can update the notebook later on. |
All parsers need to have their output changed to a
Topology
object. These should only now return values that are defined in the format (no guessing & no default values).For details on the new structures, see:
https://github.com/MDAnalysis/mdanalysis/wiki/Guide-to-new-Topology-format
It is also possible to add in Attributes for values that were previously ignored
The text was updated successfully, but these errors were encountered: