Skip to content

normalized_names

normalized_names(pos='p', neg='n')

Returns a normalized identifier string for every species in the collection, in catalogue order. Each name is lowercased and has "+" replaced by pos and "-" replaced by neg, producing strings that are valid variable names in C, Fortran, and Python. With the defaults, "HCO+" becomes "hcop" and "e-" becomes "en".

Parameters

pos : str, optional
Replacement for "+", by default "p".
neg : str, optional
Replacement for "-", by default "n".

Returns

Vector[str]
Normalized, code-safe identifier string for each species, in catalogue order.