-
Notifications
You must be signed in to change notification settings - Fork 823
Closed
Labels
Component-ReadersFormat-ChainReaderChainReader virtual trajectory readerChainReader virtual trajectory readerFormat-PDBGSoCGSoC projectGSoC projectdefectpersistence
Description
Expected behaviour
I'm able to pickle PDBReader under python 3
Actual behaviour
I'm getting an error that TextIOWrapper cannot be pickled.
Code to reproduce the behaviour
import MDAnalysis as mda
from MDAnalysisTests.datafiles import PDB
import pickle
u = mda.Universe(PDB, PDB)
pickle.dumps(u.trajectory)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-7-d286063031e3> in <module>()
----> 1 pickle.dumps(u.trajectory)
TypeError: cannot serialize '_io.TextIOWrapper' object
....Currently version of MDAnalysis:
(run python -c "import MDAnalysis as mda; print(mda.__version__)")
0.18.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Component-ReadersFormat-ChainReaderChainReader virtual trajectory readerChainReader virtual trajectory readerFormat-PDBGSoCGSoC projectGSoC projectdefectpersistence