-
Notifications
You must be signed in to change notification settings - Fork 652
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
Cython xdrlib #441
Cython xdrlib #441
Commits on Jan 17, 2016
-
Refactoring this is not really worth it. I'll start the xdr interface from scratch.
Configuration menu - View commit details
-
Copy full SHA for 8a6c68b - Browse repository at this point
Copy the full SHA 8a6c68bView commit details -
This is the newest version accessible from the GROMACS devs.
Configuration menu - View commit details
-
Copy full SHA for 3feecfa - Browse repository at this point
Copy the full SHA 3feecfaView commit details -
Readd original changes for seeking in XDR files
These are the changes that have been made my Manuel to enable seeking in the xtc/trr files. The C modules compile besides of some changes I need to make to the cython wrappers. Signed-off-by: Max Linke <max_linke@gmx.de>
Configuration menu - View commit details
-
Copy full SHA for a2b451c - Browse repository at this point
Copy the full SHA a2b451cView commit details -
Fix memleak in xtc offset calculation
It was never returned how the the offsets array actually had become. This means there was no way of taking back controll over a small part of the allocated memory. Resulting in a memory leak. This new version also returns the information about the actual size of the offsets array.
Configuration menu - View commit details
-
Copy full SHA for a950012 - Browse repository at this point
Copy the full SHA a950012View commit details -
This adds a clean wrapper for xtc functions in the xdrlib of GROMACS. The object acts similar to a normal file object in python. This should be the a clean wrap and enable to use xtc files with little fuss inside of mdanalysis. It currently is still somewhat slow. After fixes edges with the API and integrating it into a Reader class I'll have a look into optimizing it.
Configuration menu - View commit details
-
Copy full SHA for 312b5fe - Browse repository at this point
Copy the full SHA 312b5feView commit details -
Add test for new XTCFile object
This adds a comprehensive set of tests for the new XTCFile class. It tests most error conditions that are easy to generate and comes with it's own set of small test files. Even though I'm doing some IO everything runs very fast because the files involved are small.
Configuration menu - View commit details
-
Copy full SHA for 4bfe4d2 - Browse repository at this point
Copy the full SHA 4bfe4d2View commit details -
This is a copy of the xtc module enabling to use trr files.
Configuration menu - View commit details
-
Copy full SHA for f9446db - Browse repository at this point
Copy the full SHA f9446dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 99063b1 - Browse repository at this point
Copy the full SHA 99063b1View commit details -
This is now a 'simple' wrapper around the xtcfile object. That simplifies the code quite a lot and it looks like we have a proper seperation of responsibilities in the code
Configuration menu - View commit details
-
Copy full SHA for 34b0090 - Browse repository at this point
Copy the full SHA 34b0090View commit details -
Readd the TRR-Reader/Writer classes
Basically it is the same as the XTC module. Just small changes for the TRR format.
Configuration menu - View commit details
-
Copy full SHA for 561352f - Browse repository at this point
Copy the full SHA 561352fView commit details -
Add new tests for XTC and TRR reader/writer
Delete also old TimeStep tests since that object doesn't exists anymore in the code.
Configuration menu - View commit details
-
Copy full SHA for 140681b - Browse repository at this point
Copy the full SHA 140681bView commit details -
I need a way to convert pointers to numpy arrays in cython that is portable across numpy versions and python versions. This file should to exactly that. It will help me to treat the xdrlib correctly. The wrapper is a bit more complex then just setting the OWN_DATA flag in a newly created array to allow us a fine controll over the used deallocator. Then numpy can change it's allocater in the future and this will still work.
Configuration menu - View commit details
-
Copy full SHA for a0d14ab - Browse repository at this point
Copy the full SHA a0d14abView commit details -
deactivate persistence test deactivate timestep tests deactivate atom_group velocity source test what was this testing anyway???
Configuration menu - View commit details
-
Copy full SHA for 735b7b2 - Browse repository at this point
Copy the full SHA 735b7b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for e291468 - Browse repository at this point
Copy the full SHA e291468View commit details -
Use a common base class for the two. This reduces duplicated code. Check BOX tolerance to 2 decimal places xdrlib Upto 2 decimal places accuracy is enough for box vectors. Well it's exactly the value I need to have the tests pass.
Configuration menu - View commit details
-
Copy full SHA for 6585913 - Browse repository at this point
Copy the full SHA 6585913View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c65354 - Browse repository at this point
Copy the full SHA 4c65354View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5dcedd4 - Browse repository at this point
Copy the full SHA 5dcedd4View commit details -
Configuration menu - View commit details
-
Copy full SHA for e41f1ee - Browse repository at this point
Copy the full SHA e41f1eeView commit details -
Don't look into offsets when seeking to frame 0
Looking into the offsets array would trigger a calculation of the offsets. This modifocation allows to still use lazy loading in the XTCReader and still inspect the second frame to calculate a dt.
Configuration menu - View commit details
-
Copy full SHA for cbcf57d - Browse repository at this point
Copy the full SHA cbcf57dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 109f7e2 - Browse repository at this point
Copy the full SHA 109f7e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b051cc - Browse repository at this point
Copy the full SHA 8b051ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for f3517cc - Browse repository at this point
Copy the full SHA f3517ccView commit details -
The algorithm could only deal with relative paths. This works also for absolute paths
Configuration menu - View commit details
-
Copy full SHA for 7b08f91 - Browse repository at this point
Copy the full SHA 7b08f91View commit details -
the new system doesn't abort the offset loading. It just reloads them directly with construction then.
Configuration menu - View commit details
-
Copy full SHA for 64575a9 - Browse repository at this point
Copy the full SHA 64575a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc1ce75 - Browse repository at this point
Copy the full SHA dc1ce75View commit details -
remove lazy loading persistence offset tests
The new XDR-classes don't support lazy loading for the offsets anymore.
Configuration menu - View commit details
-
Copy full SHA for 3f6a1e7 - Browse repository at this point
Copy the full SHA 3f6a1e7View commit details -
Refactor from tempfile to tempdir
This ensures cleaning up for us and we don't have to do those unlink things.
Configuration menu - View commit details
-
Copy full SHA for a400267 - Browse repository at this point
Copy the full SHA a400267View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d3081e - Browse repository at this point
Copy the full SHA 6d3081eView commit details -
It can fail when the directory is read-only or when something else happens to the directory. In that case just fail silently
Configuration menu - View commit details
-
Copy full SHA for 9151a3f - Browse repository at this point
Copy the full SHA 9151a3fView commit details -
Since I can't possibly test for them right now they have to be deactivated.
Configuration menu - View commit details
-
Copy full SHA for 563f6e0 - Browse repository at this point
Copy the full SHA 563f6e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2308848 - Browse repository at this point
Copy the full SHA 2308848View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9afeffb - Browse repository at this point
Copy the full SHA 9afeffbView commit details -
This will only test that the code path is run. Not that the does anything correct.
Configuration menu - View commit details
-
Copy full SHA for b522357 - Browse repository at this point
Copy the full SHA b522357View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3898986 - Browse repository at this point
Copy the full SHA 3898986View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7235433 - Browse repository at this point
Copy the full SHA 7235433View commit details -
Configuration menu - View commit details
-
Copy full SHA for b1c9109 - Browse repository at this point
Copy the full SHA b1c9109View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac8b116 - Browse repository at this point
Copy the full SHA ac8b116View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca0af88 - Browse repository at this point
Copy the full SHA ca0af88View commit details -
Configuration menu - View commit details
-
Copy full SHA for a2659fc - Browse repository at this point
Copy the full SHA a2659fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2507b8f - Browse repository at this point
Copy the full SHA 2507b8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 58ede09 - Browse repository at this point
Copy the full SHA 58ede09View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4546a61 - Browse repository at this point
Copy the full SHA 4546a61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 405121f - Browse repository at this point
Copy the full SHA 405121fView commit details -
Forget offsets when xdrfile is closed.
This ensures that offsets are recalculated if another file is opened with the same xdrfile instance.
Configuration menu - View commit details
-
Copy full SHA for c890331 - Browse repository at this point
Copy the full SHA c890331View commit details -
Use better precision interface for xtc writing
This new interface is more intuitive.
Configuration menu - View commit details
-
Copy full SHA for a081c3f - Browse repository at this point
Copy the full SHA a081c3fView commit details -
Offer precision keyword in XTCWriter
The old class supported this so I should do this here as well
Configuration menu - View commit details
-
Copy full SHA for 0f95627 - Browse repository at this point
Copy the full SHA 0f95627View commit details -
Use old gromacs precision in xdrlib
This is to better deal with the precision return value here.
Configuration menu - View commit details
-
Copy full SHA for ec6df6f - Browse repository at this point
Copy the full SHA ec6df6fView commit details -
convert to xdrlib precision for XTC saving
Use a more sensible precision definition inside of MDAnalysis.
Configuration menu - View commit details
-
Copy full SHA for 1e6b5a3 - Browse repository at this point
Copy the full SHA 1e6b5a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ddc8caf - Browse repository at this point
Copy the full SHA ddc8cafView commit details -
Add information how test.xtc/trr was created
This also includes information how to read the content of the files in ascii without using MDAnalysis
Configuration menu - View commit details
-
Copy full SHA for b3f48d8 - Browse repository at this point
Copy the full SHA b3f48d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fde350 - Browse repository at this point
Copy the full SHA 7fde350View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3128f23 - Browse repository at this point
Copy the full SHA 3128f23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f2a208 - Browse repository at this point
Copy the full SHA 4f2a208View commit details -
Configuration menu - View commit details
-
Copy full SHA for 405eff1 - Browse repository at this point
Copy the full SHA 405eff1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03cb2ae - Browse repository at this point
Copy the full SHA 03cb2aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b7242e - Browse repository at this point
Copy the full SHA 7b7242eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 568067d - Browse repository at this point
Copy the full SHA 568067dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7149ed1 - Browse repository at this point
Copy the full SHA 7149ed1View commit details -
Base test classes in test files seem to be needed to start with an underscore otherwise nose picks them up and tries to lets their tests run.
Configuration menu - View commit details
-
Copy full SHA for c42c528 - Browse repository at this point
Copy the full SHA c42c528View commit details -
Configuration menu - View commit details
-
Copy full SHA for a2508e3 - Browse repository at this point
Copy the full SHA a2508e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a3c3fc - Browse repository at this point
Copy the full SHA 9a3c3fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb80ca9 - Browse repository at this point
Copy the full SHA eb80ca9View commit details -
Configuration menu - View commit details
-
Copy full SHA for afcd9da - Browse repository at this point
Copy the full SHA afcd9daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6002e9f - Browse repository at this point
Copy the full SHA 6002e9fView commit details