Skip to content

Commit

Permalink
fix bug in reactant and product energy calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
mjohnson541 committed May 26, 2023
1 parent cdfe91f commit 7bb4d72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pynta/postprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def get_reactant_products_energy(ts_path,reactants,products):
for key,val in dr.items():
if val and val < Emin:
ind = key
Emin = val
if ind == -1:
rthermos = []
break
Expand All @@ -293,6 +294,7 @@ def get_reactant_products_energy(ts_path,reactants,products):
for key,val in dp.items():
if val and val < Emin:
ind = key
Emin = val
if ind == -1:
pthermos = []
break
Expand Down

0 comments on commit 7bb4d72

Please sign in to comment.