Hi all,
On Windows (7) using Python, I've just noticed that at least some
plugins cannot be found using FindType until an instance of an
OBConversion() is created.
Python 2.6.5 (r265:79096, Mar 19 2010, 21:48:26) [MSC v.1500 32 bit
(Intel)] on win32
>>> import openbabel as ob
>>> print ob.OBForceField.FindType("MMFF94") # Cannot find
None
>>> print ob.OBFormat.FindType("smi")
None
>>> ob.OBConversion()
<openbabel.OBConversion; proxy of <Swig Object of type
'OpenBabel::OBConversion*' at 0x0035F380> >
>>> print ob.OBForceField.FindType("MMFF94") # *Can* find
<openbabel.OBForceField; proxy of <Swig Object of type
'OpenBabel::OBForceField*' at 0x0035F260> >
>>> print ob.OBFormat.FindType("smi")
<openbabel.OBFormat; proxy of <Swig Object of type
'OpenBabel::OBFormat *' at 0x0049F350> >
Weird, huh? Any idea why this is? I don't think it's anything new - I
probably just never noticed before because pybel creates an instance
of OBConversion right at the start of the file. So anyone that imports
pybel wouldn't notice this.
- Noel
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
OpenBabel-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-devel