Skip to content

Commit

Permalink
Fixed is_uhf parsing method.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwaroquiers committed Feb 23, 2024
1 parent d8e2108 commit 0042103
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion turbomoleio/output/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,12 @@ def is_uhf(self):
bool.
"""
# "mode" appears in dscf and escf, while "modus" in ridft and grad.
is_uhf = re.search("UHF (mode|modus) switched on", self.string) is not None
# "UHF mode switched on" has also disappeared in TM >= 7.7. Checking from
# "RPA UHF-EXCITATION-CALCULATION" instead.
is_uhf = (
re.search("UHF (mode|modus) switched on", self.string) is not None
or re.search("RPA UHF-EXCITATION-CALCULATION", self.string) is not None
)
return is_uhf

@lazy_property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
}
},
"s2": null,
"is_uhf": false,
"is_uhf": true,
"fermi": null,
"integral": {
"integral_neglect_threshold": 2.9e-11,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
}
},
"s2": null,
"is_uhf": false,
"is_uhf": true,
"fermi": null,
"integral": {
"integral_neglect_threshold": 2.9e-11,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
}
},
"s2": null,
"is_uhf": false,
"is_uhf": true,
"fermi": null,
"integral": {
"integral_neglect_threshold": 2.9e-11,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
}
},
"s2": null,
"is_uhf": false,
"is_uhf": true,
"fermi": null,
"integral": {
"integral_neglect_threshold": 2.9e-11,
Expand Down

0 comments on commit 0042103

Please sign in to comment.