Method numbof_components belongs to
class Notation, the core class for managing
a CurlySMILES notation.
Module:
|
csm_notation.py
|
Method:
|
numbof_components()
|
Argument:
|
no argument
|
Return:
|
nComponents, an integer
with the number of components (dot-separated parts) in the work notation
of a given notation.
|
Example:
|
For the CurlySMILES notation of cobalt(II) nitrate hexahydrate,
Co(NO3)2·6H2O
___
sNotation = '[Co+2].[O-]N(=O)=O{2}.O{6}'
the call
___
nComponents = oNotation.numof_components()
makes the assignment
___
nComponents = 9
since the work notation is
___
sWorkNotation = \
______
'[Co+2].[O-]N(=O)=O.[O-]N(=O)=O.O.O.O.O.O.O'
|
|
|