Skip to content

Commit 7bb4d72

Browse files
committed
fix bug in reactant and product energy calculations
1 parent cdfe91f commit 7bb4d72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pynta/postprocessing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ def get_reactant_products_energy(ts_path,reactants,products):
278278
for key,val in dr.items():
279279
if val and val < Emin:
280280
ind = key
281+
Emin = val
281282
if ind == -1:
282283
rthermos = []
283284
break
@@ -293,6 +294,7 @@ def get_reactant_products_energy(ts_path,reactants,products):
293294
for key,val in dp.items():
294295
if val and val < Emin:
295296
ind = key
297+
Emin = val
296298
if ind == -1:
297299
pthermos = []
298300
break

0 commit comments

Comments
 (0)