
No, as shown by the traceback, you cannot pickle internal chimera objects. This is due to the way chimera makes its C++ objects available as Python objects. We plan to fix it when we change our session saving technology, but there is lots of other stuff to do with higher priority. Greg Couch UCSF Computer Graphics Lab On Fri, 31 Aug 2007, Francis E Reyes wrote:
Is it possible to pickle a molecule object?
pickle.dumps(molecule) Traceback (most recent call last): File "<pyshell#32>", line 1, in ? pickle.dumps(molecule) File "/Applications/Chimera.app/Contents/Resources/lib/python2.4/pickle.py", line 1386, in dumps Pickler(file, protocol, bin).dump(obj) File "/Applications/Chimera.app/Contents/Resources/lib/python2.4/pickle.py", line 231, in dump self.save(obj) File "/Applications/Chimera.app/Contents/Resources/lib/python2.4/pickle.py", line 313, in save rv = reduce(self.proto) File "/Applications/Chimera.app/Contents/Resources/lib/python2.4/copy_reg.py", line 69, in _reduce_ex raise TypeError, "can't pickle %s objects" % base.__name__ TypeError: can't pickle Molecule objects
--------------------------------------------- Francis Reyes M.Sc. 215 UCB University of Colorado at Boulder
gpg --keyserver pgp.mit.edu --recv-keys 67BA8D5D
8AE2 F2F4 90F7 9640 28BC 686F 78FD 6669 67BA 8D5D