Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validation that anonymous/reduced chemical formulae are in fact reduced #913

Closed
ml-evs opened this issue Aug 26, 2021 · 0 comments · Fixed by #914
Closed

Add validation that anonymous/reduced chemical formulae are in fact reduced #913

ml-evs opened this issue Aug 26, 2021 · 0 comments · Fixed by #914
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

Comments

@ml-evs
Copy link
Member

ml-evs commented Aug 26, 2021

Prompted by aiidateam/aiida-optimade#279.

We should add validators that check that the chemical formulae presented in chemical_formula_reduced and chemical_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.

@ml-evs ml-evs added enhancement New feature or request priority/high Issue or PR with a consensus of high priority validator Related to the OPTIMADE validator models For issues related to the pydantic models directly labels Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
1 participant