mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-11-14 10:03:47 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user