mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-08-25 13:41:47 +02:00
Fix qp_extract_cipsi_data.py
This commit is contained in:
parent
06be65745f
commit
86ad99a753
@ -23,6 +23,9 @@ def extract_data(output):
|
|||||||
|
|
||||||
reading = False
|
reading = False
|
||||||
for iline, line in enumerate(lines):
|
for iline, line in enumerate(lines):
|
||||||
|
if line.startswith("Summary at N_det"):
|
||||||
|
reading = False
|
||||||
|
|
||||||
if not reading and line.startswith(" N_det "):
|
if not reading and line.startswith(" N_det "):
|
||||||
n_det = int(re.search(r"N_det\s+=\s+(\d+)", line).group(1))
|
n_det = int(re.search(r"N_det\s+=\s+(\d+)", line).group(1))
|
||||||
reading = True
|
reading = True
|
||||||
|
Loading…
Reference in New Issue
Block a user