We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecf5356 commit dfb14edCopy full SHA for dfb14ed
1 file changed
multioptpy/Wrapper/mapper.py
@@ -1908,6 +1908,10 @@ def _parse_energy_txt(txt_path: str) -> dict:
1908
return result
1909
1910
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 "# ===...
1915
# FREE ENERGY SECTION").
1916
if "FREE ENERGY SECTION" in stripped:
1917
break
0 commit comments