Skip to content

Commit

Permalink
fixed test xtb run to be compatible with new file format
Browse files Browse the repository at this point in the history
  • Loading branch information
MFSJMenger committed Dec 12, 2023
1 parent 61bf1e3 commit bce2612
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions qforce/tests/test_run_xtb.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ def propane(tmp_path_factory):
pass

cwd = os.getcwd()
os.chdir(outdir / 'propane_qforce')
run_hessian = outdir / 'propane_qforce' / 'propane_hessian.inp'
os.chdir(outdir / 'propane_qforce' / '1_hessian')
run_hessian = outdir / 'propane_qforce' / '1_hessian' / 'propane_a7d7b98c1b9fc86c0ef4eb7905829efa_hessian.inp'
call(run_hessian.read_text(), shell=True)
os.chdir(outdir)

# Generate the fragments
try:
Expand All @@ -48,9 +49,10 @@ def propane(tmp_path_factory):
except SystemExit:
pass

os.chdir('fragments')
run_fragment = outdir / 'propane_qforce' / 'fragments' / 'CC_H8C3_d91b46644317dee9c2b868166c66a18c~1.inp'
os.chdir(outdir / 'propane_qforce' / '2_fragments' / 'CC_H8C3_d91b46644317dee9c2b868166c66a18c~1')
run_fragment = outdir / 'propane_qforce' / '2_fragments' / 'CC_H8C3_d91b46644317dee9c2b868166c66a18c~1' / 'CC_H8C3_d91b46644317dee9c2b868166c66a18c~1.inp'
call(run_fragment.read_text(), shell=True)
os.chdir(outdir)

# Generate the topology
try:
Expand Down

0 comments on commit bce2612

Please sign in to comment.