Skip to content

fix mismatch between pymatgen and atomate2 key for Clarke thermal con…#1448

Merged
JaGeo merged 1 commit intomaterialsproject:mainfrom
hrushikesh-s:clarke-thermalcond-key-mismatch
Mar 31, 2026
Merged

fix mismatch between pymatgen and atomate2 key for Clarke thermal con…#1448
JaGeo merged 1 commit intomaterialsproject:mainfrom
hrushikesh-s:clarke-thermalcond-key-mismatch

Conversation

@hrushikesh-s
Copy link
Copy Markdown
Collaborator

Summary

  • Fix 1 -- This PR fixes an issue where clark_thermalcond is always None in the
    elastic tensor workflow output.
    pymatgen returns:

    • clarke_thermalcond (note the "e")
      atomate2 schema expects:
    • clark_thermalcond

    -- Standardize the field name to clarke_thermalcond in atomate2

Before a pull request can be merged, the following items must be checked:

  • Code is in the standard Python style.
    The easiest way to handle this is to run the following in the correct sequence on
    your local machine. Start with running ruff and ruff format on your new code. This will
    automatically reformat your code to PEP8 conventions and fix many linting issues.
  • Doc strings have been added in the Numpy docstring format.
    Run ruff on your code.
  • Type annotations are highly encouraged. Run mypy to
    type check your code.
  • Tests have been added for any new functionality or bug fixes.
  • All linting and tests pass.

Note that the CI system will run all the above checks. But it will be much more
efficient if you already fix most errors prior to submitting the PR. It is highly
recommended that you use the pre-commit hook provided in the repository. Simply run
pre-commit install and a check will be run prior to allowing commits.

…ductivity

pymatgen's ElasticTensor.get_structure_property_dict() returns the key
"clarke_thermalcond", while atomate2's DerivedProperties schema defines
the field as "clark_thermalcond".

No changes to underlying calculations -- only fixes serialization/schema alignment.
@JaGeo JaGeo merged commit ecaec88 into materialsproject:main Mar 31, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants