mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-12-22 03:23:29 +01:00
Fix qp_extract_cipsi_data.py
This commit is contained in:
parent
accf8c28f6
commit
4c0de615fb
@ -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