Add validation that anonymous/reduced chemical formulae are in fact reduced #913
Labels
enhancement
New feature or request
models
For issues related to the pydantic models directly
priority/high
Issue or PR with a consensus of high priority
validator
Related to the OPTIMADE validator
Prompted by aiidateam/aiida-optimade#279.
We should add validators that check that the chemical formulae presented in
chemical_formula_reduced
andchemical_formula_anonymous
are in fact reduced, e.g. that for AxByCz,math.gcd([x, y, z]) == 1
.This is important to truly enable filtering on chemical formulae.
The text was updated successfully, but these errors were encountered: