Skip to content

Commit

Permalink
Including one more special case
Browse files Browse the repository at this point in the history
  • Loading branch information
sudarsan-surendralal committed Aug 24, 2020
1 parent 32c23e5 commit 9977e56
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pyiron/vasp/base.py
Expand Up @@ -2277,6 +2277,10 @@ def load_default(self):
def _bool_str_to_bool(self, val):
val = super(Incar, self)._bool_str_to_bool(val)
extra_bool = {True: "T", False: "F"}
for key, value in extra_bool.items():
if val == value:
return key
extra_bool = {True: ".True.", False: ".False."}
for key, value in extra_bool.items():
if val == value:
return key
Expand Down
3 changes: 2 additions & 1 deletion tests/static/vasp_test_files/incar_samples/INCAR_1
Expand Up @@ -9,4 +9,5 @@ MAGMOM = "0.6 0.7 0.8"
POTIM = 0.5
! IALGO = 20
LORBIT=F
LCORE=T
LCORE=T
LTEST=.False.
1 change: 1 addition & 0 deletions tests/vasp/test_vasp_import.py
Expand Up @@ -49,6 +49,7 @@ def test_incar_import(self):
self.assertFalse(ham.input.incar["LVHAR"])
self.assertFalse(ham.input.incar["LORBIT"])
self.assertTrue(ham.input.incar["LCORE"])
self.assertFalse(ham.input.incar["LTEST"])
self.assertEqual(ham.input.incar["POTIM"], 0.5)


Expand Down

0 comments on commit 9977e56

Please sign in to comment.