Skip to content

Commit 773b112

Browse files
committed
Define e_electronic_with_corrections, zpe before e0 conditions
to formally solve the "referenced before assignment" error
1 parent a041fde commit 773b112

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arkane/statmech.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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:

0 commit comments

Comments
 (0)