CurlySMILES class Notation: method atoms_numb_compnt

Method atoms_numb_compnt belongs to class Notation, the core class for managing a CurlySMILES notation.

Module: csm_notation.py
Method: atoms_numb_compnt(iCompnt)
Argument: iCompnt (index of component);
type: integer;
values: 1, 2,..., or nCompnt
Return: lstAtNumb, a list with atomic numbers in the same order in which the corresponding atomic symbols occur (from left to right) in the component notation.
Example: For the one-component CurlySMILES notation

___ sNotation = 'CC(C)CO[SiH]{-X}C'

the call

___ lstAtSymb = oNotation.atoms_numb_compnt(1)

makes the assignment

___ lstAtSymb = [6,6,6,6,8,14,6]


Please, email comments and suggestions to axeleratio@yahoo.com
Custom Search