Skip to content

Commit

Permalink
undoing some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hjnpark committed Nov 14, 2024
1 parent 8453ea5 commit ee0ab38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions geometric/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ def edit_tcin(fin=None, fout=None, options=None, defaults=None, reqxyz=True, ign
if k == 'coordinates' and reqxyz:
if not os.path.exists(os.path.join(tcin_dirname, v.strip())):
raise RuntimeError("TeraChem coordinate file does not exist")
else:
v = os.path.join(tcin_dirname, v.strip())
if k in intkeys:
v = int(v)
if k in Answer:
Expand Down
2 changes: 2 additions & 0 deletions geometric/tests/test_irc.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def test_tera_hcn_irc(localizer, molecule_engine_hcn):
"""
IRC test with TeraChem
"""
shutil.copy2(os.path.join(datad, 'hcn_irc_input.xyz'), os.path.join(os.getcwd(), 'hcn_irc_input.xyz'))

M, IC, engine, params = molecule_engine_hcn('tera')
coords = M.xyzs[0].flatten() * geometric.nifty.ang2bohr
dirname = tempfile.mkdtemp()
Expand Down
2 changes: 2 additions & 0 deletions geometric/tests/test_neb.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def test_tera_hcn_neb_optimize(localizer, molecule_engine_hcn):
"""
NEB with TeraChem
"""
shutil.copy2(os.path.join(datad, 'hcn_neb_input.xyz'), os.path.join(os.getcwd(), 'hcn_neb_input.xyz'))

M, engine = molecule_engine_hcn('tera', 11)

params = geometric.params.NEBParams(**{"optep": False, "align": False})
Expand Down

0 comments on commit ee0ab38

Please sign in to comment.