Add normf in gamessFile

This commit is contained in:
Anthony Scemama 2021-10-05 12:04:44 +02:00
parent 202a426062
commit 2646704b22
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ class gamessFile(resultsFile.resultsFileX):
self.find_string("RUN TITLE")
self.find_next_string("NORMF = ")
pos = self._pos
self._normf = int(self.text[pos].split("=")[1].split()[0])
buffer = self.text[pos].split("=")
assert buffer[0].strip() == "NORMF"
self._normf = int(buffer[1].split()[0])
except IndexError:
pass
return self._normf