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 proper smearing for VASP #454

Merged
merged 5 commits into from
Dec 2, 2021
Merged

Add proper smearing for VASP #454

merged 5 commits into from
Dec 2, 2021

Conversation

sudarsan-surendralal
Copy link
Member

No description provided.

@sudarsan-surendralal sudarsan-surendralal added the enhancement New feature or request label Dec 1, 2021
@sudarsan-surendralal sudarsan-surendralal linked an issue Dec 1, 2021 that may be closed by this pull request
@coveralls
Copy link

coveralls commented Dec 1, 2021

Pull Request Test Coverage Report for Build 1531571031

  • 11 of 11 (100.0%) changed or added relevant lines in 1 file are covered.
  • 29 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.01%) to 69.839%

Files with Coverage Reduction New Missed Lines %
pyiron_atomistics/atomistics/structure/sparse_list.py 1 66.67%
pyiron_atomistics/sphinx/base.py 1 82.21%
pyiron_atomistics/atomistics/structure/neighbors.py 7 95.63%
pyiron_atomistics/lammps/potential.py 20 74.82%
Totals Coverage Status
Change from base Build 1526173852: 0.01%
Covered Lines: 11441
Relevant Lines: 16382

💛 - Coveralls

Copy link
Member

@samwaseda samwaseda left a comment

Choose a reason for hiding this comment

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

@deprecate(arguments={"ismear": "Preferably use parameters `smearing` and `order` "
"to set the type of smearing you want"})
def set_occupancy_smearing(self, smearing: str = None, width: float = None,
order: int = 1, ismear: int = None) -> None:
"""
Set how the finite temperature smearing is applied in determining partial occupancies

Args:
smearing (str): Type of smearing (fermi/gaussian etc.)
Copy link
Member

Choose a reason for hiding this comment

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

I think it should explicitly say what's available.

elif smearing.lower().startswith("fermi"):
self.input.incar["ISMEAR"] = -1
elif smearing.lower().startswith("gauss"):
self.input.incar["ISMEAR"] = 0
Copy link
Member

Choose a reason for hiding this comment

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

Maybe else ValueError?

Copy link
Contributor

@pmrv pmrv left a comment

Choose a reason for hiding this comment

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

Looks good to me except for the nits from me and @samwaseda .

pyiron_atomistics/vasp/base.py Outdated Show resolved Hide resolved
@sudarsan-surendralal sudarsan-surendralal merged commit 7737f51 into master Dec 2, 2021
@delete-merged-branch delete-merged-branch bot deleted the smearing branch December 2, 2021 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

set_occupancy_smearing should have order but not ismear
4 participants