If you realy need symbol of an element in automated fassion, then there is
OBElementTable.GetSymbol( atomicnum ) that you can use.

http://openbabel.org/dev-api/classOpenBabel_1_1OBElementTable.shtml#a18907ad1590deb926b43c4f08cac9405

----
Pozdrawiam,  |  Best regards,
Maciek Wójcikowski
mac...@wojcikowski.pl


2013/6/5 Maciek Wójcikowski <mac...@wojcikowski.pl>

> Hello,
>
> Sure - try atom.atomicnum (pybel) or OBAtom.GetAtomicNum() (openbabel). It
> returns atomic number of element (fe. C - 6).
>
> ----
> Pozdrawiam,  |  Best regards,
> Maciek Wójcikowski
> mac...@wojcikowski.pl
>
>
> 2013/6/5 Dimitri Maziuk <dmaz...@bmrb.wisc.edu>
>
>>  Hi all,
>>
>> I'm after the atom (element) type letter. What I get from pybel's
>> atom.type or atom.OBAtom.GetType() are O3, O2, C3, C2, etc. Is there a
>> function or property that returns just O's and C's?
>>
>> TIA,
>> --
>> Dimitri Maziuk
>> Programmer/sysadmin
>> BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
>>
>>
>>
>> ------------------------------------------------------------------------------
>> How ServiceNow helps IT people transform IT departments:
>> 1. A cloud service to automate IT design, transition and operations
>> 2. Dashboards that offer high-level views of enterprise services
>> 3. A single system of record for all IT processes
>> http://p.sf.net/sfu/servicenow-d2d-j
>> _______________________________________________
>> OpenBabel-discuss mailing list
>> OpenBabel-discuss@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>>
>>
>
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to