aquakin.SpeciationUnitsWarning#

exception aquakin.SpeciationUnitsWarning[source]#

Bases: UserWarning

Advisory: a speciation: / precipitation: molar_mass looks dimensionally inconsistent with the referenced species’ declared units.

Emitted (as a warning, not an error) at model load. The relationship between a block’s molar_mass (which converts the species’ state value to mol/L via mol/L = state / molar_mass) and the species’ declared units lives only in a YAML comment, so a hand-edit that breaks it silently shifts the computed pH / saturation index. Filter it with warnings.filterwarnings("ignore", category=aquakin.SpeciationUnitsWarning).