xnn.ffnn.models.dreidinglib.element_of#

xnn.ffnn.models.dreidinglib.element_of(type_name)[source]#

Chemical element implied by a DREIDING type mnemonic.

The first one or two characters name the element, with _ padding single-letter symbols (N_, H__HB).

Parameters:

type_name (str) – The DREIDING atom type.

Returns:

The element symbol (empty if the mnemonic matches no element).

Return type:

str