Hi,
I don't know if I encountered a problem similar to bug-tracker Nr 1802574:
when loading a mol to a shelve all the Properties are lost:

>>> from Chem import AllChem as Chem
>>> import shelve
>>> mol=Chem.MolFromSmiles('c1ccccc1CO')
>>> list(mol.GetPropNames())
[]
>>> mol.SetProp('testing','value')
>>> mol.GetProp('testing')
'value'
>>> a=shelve.open('testshelve')
>>> a['test']=mol
>>> mol2=a['test']
>>> mol2.GetProp('testing')
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
KeyError: 'testing'
>>> list(mol2.GetPropNames())
[]

How do I preserve properties?
Cheers Markus



Reply via email to