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

Fixed Incar object to allow for ML_MODE vasp tag #3625

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

davidwaroquiers
Copy link
Contributor

@davidwaroquiers davidwaroquiers commented Feb 14, 2024

Fixed Incar object to allow for ML_MODE vasp tag which does not want to have capitalized values (train, run, ...). By default, pymatgen capitalizes the values of the INCAR tags (e.g. "ALGO = Fast", even if you set incar["ALGO"] = "fast"). This is not working for the ML_MODE tag.
Also fixed (i.e. ignored specific mypy code) random mypy errors in files that were not touched ...

Summary

Major changes:

  • Allow the use of ML_MODE tag in INCAR (not capitalizing, lowering instead)

have capitalized values (train, run, ...). By default, pymatgen
capitalizes the values of the INCAR tags (e.g. "ALGO = Fast", even if
you set incar["ALGO"] = "fast"). This is not working for the ML_MODE
tag.
Also fixed (i.e. ignored specific mypy code) random mypy errors in files
that were not touched ...
Copy link
Member

@janosh janosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i reverted the mypy ignores to see if they actually show up in our CI cause I couldn't repro locally. maybe check your mypy version and/or reinstall commit hooks

@janosh janosh enabled auto-merge (squash) February 15, 2024 16:02
@janosh janosh added io Input/output functionality fix Bug fix PRs vasp Vienna Ab initio Simulation Package labels Feb 15, 2024
@janosh janosh merged commit d44363e into materialsproject:master Feb 15, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix PRs io Input/output functionality vasp Vienna Ab initio Simulation Package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants