Chemical Data Processing Library Python API - Version 1.1.1
|
A global dictionary for the lookup of data associated with the atom types defined in namespace Chem.AtomType. More...
Classes | |
class | Entry |
Public Member Functions | |
None | __init__ () |
Initializes the AtomDictionary instance. | |
None | __init__ (AtomDictionary dict) |
Initializes a copy of the AtomDictionary instance dict. More... | |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
None | addEntry (Entry entry) |
bool | containsEntry (int type, int isotope) |
None | removeEntry (int type, int isotope) |
Entry | getEntry (int type, int isotope) |
None | clear () |
int | getNumEntries () |
list | getEntries () |
None | loadDefaults () |
AtomDictionary | assign (AtomDictionary dict) |
Replaces the current state of self with a copy of the state of the AtomDictionary instance dict. More... | |
Static Public Member Functions | |
None | set (AtomDictionary dict) |
AtomDictionary | get () |
str | getSymbol (int type, int isotope=0) |
Returns the symbol that is associated with the specified atom type and isotope. More... | |
str | getName (int type, int isotope=0) |
Returns the name of the chemical element that is associated with the specified atom type and isotope. More... | |
int | getType (str symbol, bool strict=False) |
Returns the numeric atom type that is associated with the specified atom type symbol. More... | |
int | getMostAbundantIsotope (int type) |
Returns the mass number of the most abundant isotope of the chemical element specified by type. More... | |
int | getIUPACGroup (int type) |
Returns the IUPAC group of the chemical element specified by type. More... | |
int | getPeriod (int type) |
Returns the period number of the chemical element specified by type. More... | |
int | getNumValenceElectrons (int type) |
Returns the number of valence electrons of the chemical element specified by type. More... | |
float | getAtomicWeight (int type, int isotope=0) |
Returns the standard atomic weight or the relative isotopic mass of an isotope of the chemical element specified by type. More... | |
float | getVdWRadius (int type) |
Returns the van der Waals radius of the chemical element specified by type. More... | |
float | getCovalentRadius (int type, int order=1) |
Returns the covalent radius of the chemical element specified by type for the given bond order. More... | |
float | getAllredRochowElectronegativity (int type) |
Returns the Allred-Rochow electronegativity of the chemical element specified by type. More... | |
Util.STArray | getValenceStates (int type) |
Returns an array with the valence states of the chemical element specified by type. More... | |
bool | isChemicalElement (int type) |
Tells whether the specified atom type represents a chemical element. More... | |
bool | isMainGroupElement (int type) |
Tells whether the chemical element specified by type is a main group element. More... | |
bool | isTransitionMetal (int type) |
Tells whether the chemical element specified by type is a transition metal. More... | |
bool | isMetal (int type) |
Tells whether the chemical element specified by type is a metal. More... | |
bool | isSemiMetal (int type) |
Tells whether the chemical element specified by type is a semi-metal. More... | |
bool | isNonMetal (int type) |
Tells whether the chemical element specified by type is a non-metal. More... | |
bool | isHalogen (int type) |
Tells whether the chemical element specified by type is a halogen. More... | |
bool | isNobleGas (int type) |
Tells whether the chemical element specified by type is a noble gas. More... | |
Properties | |
objectID = property(getObjectID) | |
numEntries = property(getNumEntries) | |
entries = property(getEntries) | |
A global dictionary for the lookup of data associated with the atom types defined in namespace Chem.AtomType.
None CDPL.Chem.AtomDictionary.__init__ | ( | AtomDictionary | dict | ) |
Initializes a copy of the AtomDictionary instance dict.
dict | The AtomDictionary instance to copy. |
int CDPL.Chem.AtomDictionary.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python AtomDictionary instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b
thus cannot tell reliably whether the two AtomDictionary instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID()
.
None CDPL.Chem.AtomDictionary.addEntry | ( | Entry | entry | ) |
entry |
bool CDPL.Chem.AtomDictionary.containsEntry | ( | int | type, |
int | isotope | ||
) |
type | |
isotope |
None CDPL.Chem.AtomDictionary.removeEntry | ( | int | type, |
int | isotope | ||
) |
type | |
isotope |
Entry CDPL.Chem.AtomDictionary.getEntry | ( | int | type, |
int | isotope | ||
) |
type | |
isotope |
int CDPL.Chem.AtomDictionary.getNumEntries | ( | ) |
list CDPL.Chem.AtomDictionary.getEntries | ( | ) |
AtomDictionary CDPL.Chem.AtomDictionary.assign | ( | AtomDictionary | dict | ) |
Replaces the current state of self with a copy of the state of the AtomDictionary instance dict.
dict | The AtomDictionary instance to copy. |
|
static |
dict |
|
static |
<br> |
|
static |
Returns the symbol that is associated with the specified atom type and isotope.
The isotope argument has only an effect for hydrogen whose isotopes have different symbols (D for Deuterium and T for Tritium).
type | The atom type. |
isotope | The mass number of the isotope, or 0 if not specified. |
|
static |
Returns the name of the chemical element that is associated with the specified atom type and isotope.
The isotope argument has only an effect for hydrogen whose isotopes are named differently (Deuterium and Tritium).
type | The atom type specifying the chemical element. |
isotope | The mass number of the element's isotope, or 0 if not specified. |
|
static |
Returns the numeric atom type that is associated with the specified atom type symbol.
symbol | The atom type symbol. |
strict | If True , dictionary symbols strictly have to match the argument symbol. Otherwise, the symbols will be converted to upper-case before their comparison. |
|
static |
Returns the mass number of the most abundant isotope of the chemical element specified by type.
type | The atom type specifying the chemical element. |
|
static |
Returns the IUPAC group of the chemical element specified by type.
type | The atom type specifying the chemical element. |
|
static |
Returns the period number of the chemical element specified by type.
type | The atom type specifying the chemical element. |
|
static |
Returns the number of valence electrons of the chemical element specified by type.
type | The atom type specifying the chemical element. |
|
static |
Returns the standard atomic weight or the relative isotopic mass of an isotope of the chemical element specified by type.
If the element isotope is left unspecified, i.e. the argument isotope is zero, then the standard atomic weight of the chemical element will be returned. If an isotope is specified and the exact relative isotopic mass of the specified isotope is not available, the relative isotopic mass is approximated by the provided mass number of the isotope.
type | The atom type specifying the chemical element. |
isotope | The mass number of the element's isotope, or 0 if not specified. |
|
static |
Returns the van der Waals radius of the chemical element specified by type.
type | The atom type specifying the chemical element. |
|
static |
Returns the covalent radius of the chemical element specified by type for the given bond order.
type | The atom type specifying the chemical element. |
order | The bond order. |
|
static |
Returns the Allred-Rochow electronegativity of the chemical element specified by type.
type | The atom type specifying the chemical element. |
|
static |
Returns an array with the valence states of the chemical element specified by type.
type | The atom type specifying the chemical element. |
|
static |
Tells whether the specified atom type represents a chemical element.
type | The atom type. |
True
if type specifies a chemical element, and False
otherwise.
|
static |
Tells whether the chemical element specified by type is a main group element.
type | The atom type specifying the chemical element. |
True
if type specifies a main group element, and False
otherwise.
|
static |
Tells whether the chemical element specified by type is a transition metal.
type | The atom type specifying the chemical element. |
True
if type specifies a transition metal, and False
otherwise.
|
static |
Tells whether the chemical element specified by type is a metal.
type | The atom type specifying the chemical element. |
True
if type specifies a metal, and False
otherwise.
|
static |
Tells whether the chemical element specified by type is a semi-metal.
type | The atom type specifying the chemical element. |
True
if type specifies a semi-metal, and False
otherwise.
|
static |
Tells whether the chemical element specified by type is a non-metal.
type | The atom type specifying the chemical element. |
True
if type specifies a non-metal, and False
otherwise.
|
static |
Tells whether the chemical element specified by type is a halogen.
type | The atom type specifying the chemical element. |
True
if type specifies a halogen, and False
otherwise.
|
static |
Tells whether the chemical element specified by type is a noble gas.
type | The atom type specifying the chemical element. |
True
if type specifies a noble gas, and False
otherwise.