Repository navigation
Accept spin_multiplicity for the spin multiplicity - #2255
Open
frostedoyster wants to merge 2 commits into
Open
frostedoyster wants to merge 2 commits into
frostedoyster wants to merge 2 commits into
Conversation
Throughout fairchem, spin is the spin multiplicity (2S+1), not S, but the name keeps being misread. Add spin_multiplicity as the preferred, unambiguous name while keeping spin working everywhere: - AtomicData.from_ase/to_ase and validate_uma_atoms_data accept atoms.info[spin_multiplicity] (spin remains a legacy alias); conflicting values raise. Validation warns for omol with multiplicity 0 and for nonzero charge/spin on non-omol tasks. - AllScAIP delegates to the shared validator instead of duplicating it. - LAMMPS accepts spin_multiplicity: in lammps_fc_config.yaml (example omol config now 1) and spin_multiplicity= in its Python API; spin is a deprecated alias. - Docs use spin multiplicity (2S+1) consistently: fix FAIRChemCalculator defaults (omol -> 1) and range (1-100 for omol; 0 is the null token for non-omol tasks), and update quickstart, UMA guide, tutorial, FAQ, MD, batch inference and LAMMPS docs (llms regenerated). Existing scripts, datasets and checkpoints keep working: the internal AtomicData.spin field is unchanged.
Replace 'alias' with 'shorthand' in the spin_multiplicity wording (code, docs, tests; llms regenerated).
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, spin is the spin multiplicity 2S+1, not S, so the name is ambiguous. This PR adds spin_multiplicity as the preferred name, and
spinis treated as a shorthand. Solves #2242