ReactionMechanismGenerator / AutoTST

AutoTST: A framework to perform automated transition state theory calculations
Other
32 stars 16 forks source link

TypeError: cannot serialize '_io.TextIOWrapper' while pickling conformer objects generated by HotBit #46

Closed skrsna closed 4 years ago

skrsna commented 4 years ago
rwest commented 4 years ago

What is the object you’re trying to serialize? Some part of Conformer?

rwest commented 4 years ago

https://docs.python.org/3/library/pickle.html#pickling-class-instances

skrsna commented 4 years ago

I'm trying to pickle the whole Conformer object to update the Mongo Collection. Using EMT or DFTB calculators doesn't give this error though. But I'll look into how to solve this.

rwest commented 4 years ago

Try to figure out which part of the conformer object is causing the problem. Presumably some attached Calculator or something.

skrsna commented 4 years ago

Fixed this by remaking the Conformer objects using _ase_molecule attribute.