10
0
mirror of https://gitlab.com/scemama/resultsFile.git synced 2024-12-22 12:23:38 +01:00

Add normf in gamessFile

This commit is contained in:
Anthony Scemama 2021-10-05 12:04:44 +02:00
parent 202a426062
commit 2646704b22

View File

@ -75,7 +75,9 @@ class gamessFile(resultsFile.resultsFileX):
self.find_string("RUN TITLE") self.find_string("RUN TITLE")
self.find_next_string("NORMF = ") self.find_next_string("NORMF = ")
pos = self._pos 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: except IndexError:
pass pass
return self._normf return self._normf