Skip to content

Commit

Permalink
update test_molecule.py
Browse files Browse the repository at this point in the history
  • Loading branch information
damarkian committed Dec 17, 2023
1 parent 207a136 commit 41b6d0b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 0 additions & 4 deletions lih.xyz

This file was deleted.

4 changes: 4 additions & 0 deletions tests/lih.xyz
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
2
0 1
Li 0.0 0.0 0.0
H 0.0 0.0 1.2
4 changes: 2 additions & 2 deletions tests/test_molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def test_run_pyscf():

def test_run_pyscf_molecule_xyz():
"""Pyscf driver with xyz file"""
path = "./lih.xyz"
path = "./tests/lih.xyz"
check_file = os.path.exists(path)
if check_file == False:
with open("lih.xyz", "a") as file:
with open("./tests/lih.xyz", "a") as file:
file.write("2\n 0 1\n Li 0.0 0.0 0.0\n H 0.0 0.0 1.2")
lih_ref_energy = -7.83561582555692
lih = Molecule(xyz_file="lih.xyz")
Expand Down

0 comments on commit 41b6d0b

Please sign in to comment.