CurlySMILES class Notation: method numof_composite_parts

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

Module: csm_notation.py
Method: numof_composite_parts()
Argument: no argument
Return: nCpsParts, an integer with the number of composite parts (forward-slash-separated parts) in a composite notation.
Example: For the CurlySMILES notation of the composite MEEP/ZrO2, consisting of poly[bis(methoxy-ethoxy-ethoxy)phosphazene] (MEEP) and zirconium dioxide

___ sNotation = '{/N{-}=P{+n}(OCCOCCOC)(OCCOCCOC)/{*ZrO2}}'

the call

___ nCpsParts = oNotation.numof_composite_parts()

makes the assignment

___ nCompositeParts = 2



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