@@ -575,6 +575,8 @@ def create_log(log_path, check_for_errors=True):
575575 # and the zero point energy scaling factor, see https://pubs.acs.org/doi/10.1021/ct100326h Section 3.1.3.
576576 zpe_scale_factor = self .frequencyScaleFactor / 1.014
577577
578+ e_electronic_with_corrections , zpe = 0 , 0
579+
578580 logging .debug (' Reading energy...' )
579581 if e0 is None :
580582 if e_electronic is None :
@@ -686,7 +688,7 @@ def create_log(log_path, check_for_errors=True):
686688 # Set the difference as the isodesmic EO correction
687689 e_electronic_with_corrections += isodesmic_thermo .value_si - uncorrected_thermo
688690
689- e0 = e_electronic_with_corrections + zpe
691+ e0 = e_electronic_with_corrections + zpe if e0 is None else e0
690692 logging .debug (' E0 (0 K) = {0:g} kcal/mol' .format (e0 / 4184. ))
691693 conformer .E0 = (e0 * 0.001 , "kJ/mol" )
692694
@@ -711,7 +713,7 @@ def create_log(log_path, check_for_errors=True):
711713 else :
712714 self .supporting_info .append (None )
713715 self .supporting_info .append (e_electronic )
714- self .supporting_info .append (e_electronic + zpe )
716+ self .supporting_info .append (e_electronic + zpe if e_electronic is not None and zpe is not None else None )
715717 self .supporting_info .append (e0 )
716718 self .supporting_info .append (list ([symbol_by_number [x ] for x in number ])) # atom symbols
717719 self .supporting_info .append (coordinates )
0 commit comments