-
Notifications
You must be signed in to change notification settings - Fork 663
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
Serialize FileIO and TextIOWrapper and Universe #2723
Merged
Merged
Changes from 113 commits
Commits
Show all changes
120 commits
Select commit
Hold shift + click to select a range
931d9b5
Merge pull request #1 from MDAnalysis/develop
yuxuanzhuang d69ce98
Merge remote-tracking branch 'mda_origin/develop' into develop
yuxuanzhuang 432edf3
add pickle function to fileio, textio
yuxuanzhuang bf55bf3
add basic test for pickle io
yuxuanzhuang cd9a485
add comments
yuxuanzhuang f33629f
xfail on python2
yuxuanzhuang aca4496
add doc and exception for pickle_open
yuxuanzhuang cd4ffe3
add doc for textio fileio class
yuxuanzhuang ec5bd3c
add parallel test for textio
yuxuanzhuang f6515ee
pep8
yuxuanzhuang cf29764
add an extra bufferlayer for FileIO for fast access
yuxuanzhuang 6b09e20
Merge remote-tracking branch 'mda_origin/develop' into serialize_io
yuxuanzhuang c29c316
ditch py2
yuxuanzhuang db47e27
pep8 and doc
yuxuanzhuang 7e9d6d3
add test for unsupported mode
yuxuanzhuang eb83a7c
pep8
yuxuanzhuang 0baa868
typo
yuxuanzhuang c8e63b2
pickle reorder
yuxuanzhuang 658b446
pickle_open as context manager
yuxuanzhuang 1aa6003
format
yuxuanzhuang f2738bc
move pickle-io to a separate file
yuxuanzhuang 001f3b8
doc
yuxuanzhuang d0374f5
FileIOPicklable class now only supports name as input, (preventing us…
yuxuanzhuang 8c62df8
pickle open doc and add fspath for the filename
yuxuanzhuang 94f1f8d
absolute import
yuxuanzhuang acbadec
more doc
yuxuanzhuang 7043d2d
more pep8 and format
yuxuanzhuang 546b05d
Merge remote-tracking branch 'mda_origin/develop' into serialize_io
yuxuanzhuang c259143
sphinx mark up
yuxuanzhuang a016a65
add pickle_open example
yuxuanzhuang 401e6ae
changelog
yuxuanzhuang 9225c71
sphinx more
yuxuanzhuang 46c43af
add context manager approach text
yuxuanzhuang 21fe5aa
add match for test valueerror
yuxuanzhuang 821c822
typo
yuxuanzhuang 5e25380
Merge branch 'develop' into serialize_io
yuxuanzhuang 2541a3e
tell error and fileio cov
yuxuanzhuang 1003cd3
Merge branch 'serialize_io' of https://github.com/yuxuanzhuang/mdanal…
yuxuanzhuang 1b7a798
Merge branch 'develop' into serialize_io
yuxuanzhuang b79d282
remove future import
yuxuanzhuang d909d63
merge to develop
yuxuanzhuang cafc596
sphinx block code
yuxuanzhuang 2db1ef2
typo
yuxuanzhuang 33ef68a
Merge branch 'develop' into serialize_io
yuxuanzhuang 24f2a34
Merge branch 'develop' into serialize_io
yuxuanzhuang 84baca9
pickle open pdb and xyz
yuxuanzhuang 108ebde
Merge branch 'serialize_io' of https://github.com/yuxuanzhuang/mdanal…
yuxuanzhuang 7cb40ad
add pickle support to universe, add test, add chainreader
yuxuanzhuang 352ab96
fix misc issues
yuxuanzhuang 356986f
remove python2 legacy bz2
yuxuanzhuang e5ef732
remove fail test for offset
yuxuanzhuang aa6e40d
issue raised in changelog
yuxuanzhuang 43a62d5
pep8
yuxuanzhuang 2559625
add pickle func to ReaderBase and set offset
yuxuanzhuang 507f8f5
add test for bz2 gzip and class check
yuxuanzhuang 26fcfe9
add test for gsd, ncdf
yuxuanzhuang 405a6dc
add test for trajectory.next after pickling
yuxuanzhuang 2380a47
older gsd file
yuxuanzhuang dab38c1
move gsd, ncdf to coord
yuxuanzhuang 5c07901
add chainreader state
yuxuanzhuang b324791
test timestep
yuxuanzhuang 49f959d
doc
yuxuanzhuang 773524d
add doc version change
yuxuanzhuang b7e4ef0
chainreader fix
yuxuanzhuang 9d376b7
docstring error
yuxuanzhuang 11cceb4
check dt before pickle
yuxuanzhuang a3130f5
add pickle test to base
yuxuanzhuang faf1e01
Merge branch 'develop' into serialize_io
yuxuanzhuang df7eb86
add chemfiles pickle
yuxuanzhuang 72ba276
doc
yuxuanzhuang aa62ff0
doc add note
yuxuanzhuang 04be63d
merge to develop
yuxuanzhuang f01769f
merge to develop
yuxuanzhuang 5a2b28d
change chain getstate
yuxuanzhuang b5f5270
add in-line comments
yuxuanzhuang e1facfb
pep8
yuxuanzhuang cba4456
add chemfile test
yuxuanzhuang 5622b51
pep8
yuxuanzhuang 46cda48
raise error with mode
yuxuanzhuang 5e2ee79
change to read_step
yuxuanzhuang b23b2fb
change to almost_equal
yuxuanzhuang cd03058
save frame
yuxuanzhuang 3ce8ba7
save frame pep
yuxuanzhuang a5da2f7
add doc for pickle
yuxuanzhuang 5a9ad4d
timestep pickle doc
yuxuanzhuang bc60aa7
doc serialize
yuxuanzhuang 01fc644
doc sphinx
yuxuanzhuang 84eb61f
pickle u with getsetstate
yuxuanzhuang 9f18ccd
pep
yuxuanzhuang 8d07004
Merge branch 'develop' into serialize_io
yuxuanzhuang e37c84a
warning on cfg
yuxuanzhuang 2d3de99
sep files
yuxuanzhuang 67b65d1
merge to develop
yuxuanzhuang 18d146b
sep to two files
yuxuanzhuang 8679e50
fixed failed merge in CHANGELOG
orbeckst 0ceffe5
removed superfluous blank lines from CHANGELOG
orbeckst 688041c
xdr dcd seek error
yuxuanzhuang 204545b
Merge branch 'serialize_io' of https://github.com/yuxuanzhuang/mdanal…
yuxuanzhuang 3c71f8a
Merge remote-tracking branch 'mda_origin/develop' into serialize_io
yuxuanzhuang f2239bb
current frame xdr/dcd
yuxuanzhuang 78c93a0
Merge branch 'develop' into serialize_io
orbeckst c0d241e
remove tests not needed
yuxuanzhuang 68b1c2a
pep
yuxuanzhuang 4061434
Merge branch 'develop' into serialize_io
yuxuanzhuang d457491
test title more accurate
yuxuanzhuang 4c70dcb
Merge remote-tracking branch 'mda_origin/develop' into serialize_io
yuxuanzhuang 0496ca1
misc
yuxuanzhuang df061fc
gsd dim
yuxuanzhuang abe92da
add test for runtimee pickle
yuxuanzhuang b3469fe
add test for runtimee pickle
yuxuanzhuang b12eb0d
pep
yuxuanzhuang fae4797
doc pickle_reader
yuxuanzhuang 52a981e
mock chemfiles
yuxuanzhuang c4ec287
chemfiles mock when not found
yuxuanzhuang 8804e5b
doc revised
yuxuanzhuang c99867f
add pickle test to single_framereader
yuxuanzhuang a70bc8b
add pickle test to fhiams
yuxuanzhuang bc487a5
test doc
yuxuanzhuang a1bb47e
test doc title
yuxuanzhuang 5ace1e0
test doc title 2
yuxuanzhuang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Maybe something for me to do in a follow-up, but we can avoid some headaches long-term by using the PEP440 implementation of version comparisons here and elsewhere.
Those are robust to
alpha/beta/rc/dev
versions and so on. The raw string comparison is much less robust; there's a sort of middle ground available from distutils for version checking as well, though the PEP one is better these days.Probably out of scope given the size of this PR already though.