9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-21 19:13:29 +01:00

Fix qp_extract_cipsi_data.py

This commit is contained in:
Anthony Scemama 2023-04-13 19:36:39 +02:00
parent accf8c28f6
commit 4c0de615fb

View File

@ -23,6 +23,9 @@ def extract_data(output):
reading = False
for iline, line in enumerate(lines):
if line.startswith("Summary at N_det"):
reading = False
if not reading and line.startswith(" N_det "):
n_det = int(re.search(r"N_det\s+=\s+(\d+)", line).group(1))
reading = True