Skip to content

Commit dfb14ed

Browse files
authored
Add files via upload
1 parent ecf5356 commit dfb14ed

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

multioptpy/Wrapper/mapper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,6 +1908,10 @@ def _parse_energy_txt(txt_path: str) -> dict:
19081908
return result
19091909

19101910
with open(txt_path, "r", encoding="utf-8") as fh:
1911+
for line in fh:
1912+
stripped = line.strip()
1913+
# Stop at the free-energy section so G_tot is not mis-parsed
1914+
# as an electronic energy (the section starts with "# ===...
19111915
# FREE ENERGY SECTION").
19121916
if "FREE ENERGY SECTION" in stripped:
19131917
break

0 commit comments

Comments
 (0)