CurlySMILES class Notation: method numof_rings_compnt

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

Module: csm_notation.py
Method: numof_rings_compnt(iCompnt)
Argument: iCompnt (index of component);
type: integer;
values: 1, 2,..., or nCompnt
Return: nRings, an integer with the number of rings in the molecule.
Example:
For the one-component CurlySMILES notation of trispiro[2.2.1.3.2.2]pentadecane

___ sNotation = 'C1CCC12CCC3(C2)CCC4(CC3)CC4'

the call

___ nRings = oNotation.numof_rings_compnt(1)

makes the assignment

___ nRings = 4



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