'elements_ratios' model validator uses double-precision machine epsilon - could be relaxed #947
Labels
models
For issues related to the pydantic models directly
priority/medium
Issue or PR with a consensus of medium priority
Somewhat related to #735.
Currently we compare
sum(elements_ratios) - 1
tosys.float_info.epsilon
. A fairer comparison might be to compare to single-precision representations (as the spec just says floating point).The text was updated successfully, but these errors were encountered: