Skip to content

Commit

Permalink
Merge pull request #7 from Zhaoli2042/master
Browse files Browse the repository at this point in the history
fix: add line to print rxn conformers to rxn_conf folder for pytest example
  • Loading branch information
Zhaoli2042 authored Nov 14, 2024
2 parents f0055d8 + edfcc5e commit 2f6c2d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyTEST_Example/main_xtb.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,8 @@ def run_gsm_by_pysis(rxns, logging_queue):
key=[j for j in i.rxn_conf.keys()]
print(f"rxn: {i}, i.rxn_conf.keys: {key}\n")
for j in key:
name=f"{conf_output}/{i.reactant_inchi}_{i.id}_{j}.xyz"
write_reaction(i.reactant.elements, i.rxn_conf[j]["R"], i.rxn_conf[j]["P"], filename=name)
print(f"key: {j}\n")
rxn_ind=f"{i.reactant_inchi}_{i.id}_{j}"
wf=f"{scratch}/{rxn_ind}"
Expand Down Expand Up @@ -1025,7 +1027,7 @@ def run_enumeration(input_mol, args=dict()):
print(f"{len(products)} cleaned products after find_lewis() filtering")
rxn=[]
for count_i, i in enumerate(products):
R=reaction(reactant, i, args=args, opt=True)
R=reaction(reactant, i, args=args, opt_P=True)
rxn.append(R)
return rxn

Expand Down

0 comments on commit 2f6c2d1

Please sign in to comment.