Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
samblau committed Jun 18, 2021
1 parent 8ebf2e2 commit 0cf216e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions pymatgen/io/qchem/inputs.py
Expand Up @@ -224,7 +224,7 @@ def from_string(cls, string: str) -> "QCInput":
scan = None
vdw = None
vdw_mode = "atomic"
plots = None
plots = None
nbo = None
if "opt" in sections:
opt = cls.read_opt(string)
Expand Down Expand Up @@ -544,7 +544,6 @@ def find_sections(string: str) -> List:
raise ValueError("Output file does not contain a molecule section")
if "rem" not in sections:
raise ValueError("Output file does not contain a rem section")
print(sections)
return sections

@staticmethod
Expand Down
4 changes: 4 additions & 0 deletions pymatgen/io/qchem/tests/test_inputs.py
Expand Up @@ -923,6 +923,8 @@ def test_write_file_from_OptSet(self):
# By default, if this statement fails the offending line will be printed
assert l_test == l_ref

test_file.close()
ref_file.close()
os.remove(os.path.join(os.path.dirname(__file__), "test.qin"))

def test_write_file_from_OptSet_with_vdw(self):
Expand All @@ -939,6 +941,8 @@ def test_write_file_from_OptSet_with_vdw(self):
# By default, if this statement fails the offending line will be printed
assert l_test == l_ref

test_file.close()
ref_file.close()
os.remove(os.path.join(os.path.dirname(__file__), "test_vdw.qin"))


Expand Down

0 comments on commit 0cf216e

Please sign in to comment.