We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ChainReader can be pickled like all the other Readers.
EDIT: not all readers can be pickled...
Raises TypeError because it contains a generator object
TypeError: can't pickle generator objects
See MDAnalysis/pmda#44
import MDAnalysis as mda import pickle from MDAnalysis.tests.datafiles import TPR, XTC u = mda.Universe(TPR, 3*[XTC]) s = pickle.dumps(u.trajectory, protocol=pickle.HIGHEST_PROTOCOL)
(run python -c "import MDAnalysis as mda; print(mda.__version__)") 0.18.1-dev
python -c "import MDAnalysis as mda; print(mda.__version__)"
The text was updated successfully, but these errors were encountered:
test that reader can be pickled (#1940)
254e97b
- all readers - ChainReader (special case)
8d4821b
closed with PR #2723
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Expected behaviour
ChainReader can be pickled like all the other Readers.
EDIT: not all readers can be pickled...
Actual behaviour
Raises TypeError because it contains a generator object
See MDAnalysis/pmda#44
Code to reproduce the behaviour
Currently version of MDAnalysis:
(run
python -c "import MDAnalysis as mda; print(mda.__version__)"
)0.18.1-dev
The text was updated successfully, but these errors were encountered: