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

Cython xdrlib #441

Merged
merged 64 commits into from
Jan 17, 2016
Merged

Cython xdrlib #441

merged 64 commits into from
Jan 17, 2016

Commits on Jan 17, 2016

  1. Remove old XDR code

    Refactoring this is not really worth it. I'll start the xdr
    interface from scratch.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    8a6c68b View commit details
    Browse the repository at this point in the history
  2. Add currentversion of xdrlib

    This is the newest version accessible from the GROMACS
    devs.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    3feecfa View commit details
    Browse the repository at this point in the history
  3. 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>
    mnmelo authored and kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    a2b451c View commit details
    Browse the repository at this point in the history
  4. 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.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    a950012 View commit details
    Browse the repository at this point in the history
  5. Add XTCfile object module

    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.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    312b5fe View commit details
    Browse the repository at this point in the history
  6. 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.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    4bfe4d2 View commit details
    Browse the repository at this point in the history
  7. Add TRRFile module

    This is a copy of the xtc module enabling to use trr files.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    f9446db View commit details
    Browse the repository at this point in the history
  8. Add tests for trr module

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    99063b1 View commit details
    Browse the repository at this point in the history
  9. Readd XTC-Reader/Writer class

    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
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    34b0090 View commit details
    Browse the repository at this point in the history
  10. Readd the TRR-Reader/Writer classes

    Basically it is the same as the XTC module. Just small
    changes for the TRR format.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    561352f View commit details
    Browse the repository at this point in the history
  11. Add new tests for XTC and TRR reader/writer

    Delete also old TimeStep tests since that object doesn't exists
    anymore in the code.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    140681b View commit details
    Browse the repository at this point in the history
  12. Add C_ptr to ndarray wrapper

    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.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    a0d14ab View commit details
    Browse the repository at this point in the history
  13. deactivate some tests

    deactivate persistence test
    deactivate timestep tests
    deactivate atom_group velocity source test
       what was this testing anyway???
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    735b7b2 View commit details
    Browse the repository at this point in the history
  14. remove libxdrfile2 tests

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    e291468 View commit details
    Browse the repository at this point in the history
  15. Unify xtc/trr file wrappers

    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.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    6585913 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    4c65354 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    5dcedd4 View commit details
    Browse the repository at this point in the history
  18. Make n_frames a property

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    e41f1ee View commit details
    Browse the repository at this point in the history
  19. 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.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    cbcf57d View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    109f7e2 View commit details
    Browse the repository at this point in the history
  21. Persistently save offsets

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    8b051cc View commit details
    Browse the repository at this point in the history
  22. PEP8-fy test_persistence.py

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    f3517cc View commit details
    Browse the repository at this point in the history
  23. Fix offsets path algorithm

    The algorithm could only deal with relative paths. This
    works also for absolute paths
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    7b08f91 View commit details
    Browse the repository at this point in the history
  24. better warning message

    the new system doesn't abort the offset loading. It just
    reloads them directly with construction then.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    64575a9 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    dc1ce75 View commit details
    Browse the repository at this point in the history
  26. remove lazy loading persistence offset tests

    The new XDR-classes don't support lazy loading for the
    offsets anymore.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    3f6a1e7 View commit details
    Browse the repository at this point in the history
  27. Refactor from tempfile to tempdir

    This ensures cleaning up for us and we don't have to do those unlink
    things.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    a400267 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    6d3081e View commit details
    Browse the repository at this point in the history
  29. Only try a savez

    It can fail when the directory is read-only or when something
    else happens to the directory. In that case just fail silently
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    9151a3f View commit details
    Browse the repository at this point in the history
  30. Deactivate mismatch tests

    Since I can't possibly test for them right now they have to be
    deactivated.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    563f6e0 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    2308848 View commit details
    Browse the repository at this point in the history
  32. merge xdr test files

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    9afeffb View commit details
    Browse the repository at this point in the history
  33. Get 100% coverage in XDR.py

    This will only test that the code path is run. Not that the does
    anything correct.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    b522357 View commit details
    Browse the repository at this point in the history
  34. Fix small things in XDR.py

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    3898986 View commit details
    Browse the repository at this point in the history
  35. improve xdrlib doc strings

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    7235433 View commit details
    Browse the repository at this point in the history
  36. Reactivate timestep tests

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    b1c9109 View commit details
    Browse the repository at this point in the history
  37. clean up test_timestep_api

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    ac8b116 View commit details
    Browse the repository at this point in the history
  38. clean up test_xdr.py

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    ca0af88 View commit details
    Browse the repository at this point in the history
  39. completely remove test_vel_src.

    The code has been removed.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    a2659fc View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    2507b8f View commit details
    Browse the repository at this point in the history
  41. Combine xdrlib tests

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    58ede09 View commit details
    Browse the repository at this point in the history
  42. Remove unused variable

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    4546a61 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    405121f View commit details
    Browse the repository at this point in the history
  44. Forget offsets when xdrfile is closed.

    This ensures that offsets are recalculated if another file is opened
    with the same xdrfile instance.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    c890331 View commit details
    Browse the repository at this point in the history
  45. Use better precision interface for xtc writing

    This new interface is more intuitive.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    a081c3f View commit details
    Browse the repository at this point in the history
  46. Offer precision keyword in XTCWriter

    The old class supported this so I should do this here as well
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    0f95627 View commit details
    Browse the repository at this point in the history
  47. Use old gromacs precision in xdrlib

    This is to better deal with the precision return value here.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    ec6df6f View commit details
    Browse the repository at this point in the history
  48. convert to xdrlib precision for XTC saving

    Use a more sensible precision definition inside of MDAnalysis.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    1e6b5a3 View commit details
    Browse the repository at this point in the history
  49. Fix type in doc-string

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    ddc8caf View commit details
    Browse the repository at this point in the history
  50. 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
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    b3f48d8 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    7fde350 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    3128f23 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    4f2a208 View commit details
    Browse the repository at this point in the history
  54. deactivate unused tests

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    405eff1 View commit details
    Browse the repository at this point in the history
  55. Add XTC sub selection test

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    03cb2ae View commit details
    Browse the repository at this point in the history
  56. XDR fix spelling error

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    7b7242e View commit details
    Browse the repository at this point in the history
  57. really test offset mismatch

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    568067d View commit details
    Browse the repository at this point in the history
  58. Various QC fixes in XDR.py

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    7149ed1 View commit details
    Browse the repository at this point in the history
  59. Fix test Error

    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.
    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    c42c528 View commit details
    Browse the repository at this point in the history
  60. Fix Doc strings

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    a2508e3 View commit details
    Browse the repository at this point in the history
  61. Fix up doc strings

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    9a3c3fc View commit details
    Browse the repository at this point in the history
  62. Fix up doc strings

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    eb80ca9 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    afcd9da View commit details
    Browse the repository at this point in the history
  64. Add changelog info

    kain88-de committed Jan 17, 2016
    Configuration menu
    Copy the full SHA
    6002e9f View commit details
    Browse the repository at this point in the history