Species
Utilities for species.
get_sign(charge)
Get string representation of a number's sign.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
charge |
int
|
The number whose sign to derive. |
required |
Returns:
Name | Type | Description |
---|---|---|
sign |
str
|
either '+', '-', or '' for neutral. |
Source code in src/elementembeddings/utils/species.py
parse_species(species)
Parse a species string into its atomic symbol and oxidation state.
:param species: the species string :return: a tuple of the atomic symbol and oxidation state