Conversation
IdealGasThermo previously hardcoded spin=0 regardless of the calculator's spin state, silently ignoring user-configured multiplicity (e.g. UMA's spin field on FAIRChemCalc). Each calculator schema also exposed spin inconsistently or not at all. - FAIRChemCalc: rename "spin" -> "multiplicity" (semantics were already multiplicity, just misnamed). "spin=" is still accepted as a deprecated alias via a model_validator. atoms.info["spin"] is still emitted because UMA reads it from there. - TBLiteCalc, OrcaCalc: already had "multiplicity"; add get_multiplicity(). - NWChemCalc: add "multiplicity" and "charge", injected into the theory block (dft/mp2/ccsd/tce/tddft) as "mult"/"charge". - Psi4Calc: add "multiplicity" and "charge", passed through to ASE Psi4. - ase_tools and mcp_tools thermo blocks: derive S = (M-1)/2 from calc_model.get_multiplicity() (defaults to 1 = singlet) and pass to IdealGasThermo. parsl_tools is MACE-only, so spin=0 stays. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- tool_call_eval.py imported from chemgraph.models.ase_input, which was moved to chemgraph.schemas.ase_input in an earlier refactor. - Add testpaths = ["tests"] so pytest no longer collects the legacy scripts/evaluations/.../test_single_eval.py, which opens a cwd-relative JSON file at module import time and fails collection. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.
This PR aims to verify that spin input is correctly used by the ASE calculators