Skip to content

Commit

Permalink
Run black on custodian.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Feb 8, 2021
1 parent e0492bf commit 9007fa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions custodian/vasp/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,9 +932,7 @@ def check(self):
v = Vasprun(self.output_filename)
# check whether bandgap is zero, tetrahedron smearing was used
# and relaxation is performed.
if (v.eigenvalue_band_properties[0] == 0 and
v.incar.get("ISMEAR", 1) < -3 and
v.incar.get("NSW", 0) > 1):
if v.eigenvalue_band_properties[0] == 0 and v.incar.get("ISMEAR", 1) < -3 and v.incar.get("NSW", 0) > 1:
return True
except Exception:
pass
Expand Down
2 changes: 2 additions & 0 deletions custodian/vasp/tests/test_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ def tearDown(cls):
clean_dir()
os.chdir(cwd)


class IncorrectSmearingHandlerStaticTest(unittest.TestCase):
def setUp(cls):
if "PMG_VASP_PSP_DIR" not in os.environ:
Expand All @@ -540,6 +541,7 @@ def tearDown(cls):
clean_dir()
os.chdir(cwd)


class IncorrectSmearingHandlerFermiTest(unittest.TestCase):
def setUp(cls):
if "PMG_VASP_PSP_DIR" not in os.environ:
Expand Down

0 comments on commit 9007fa6

Please sign in to comment.