9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-06 21:43:39 +01:00

extract in better format

This commit is contained in:
Abdallah Ammar 2023-04-16 03:43:28 +02:00
parent e4664975e1
commit cc93d54f98

View File

@ -41,7 +41,8 @@ def extract_data(output):
e_ex = float(e_ex_line.split()[1]) e_ex = float(e_ex_line.split()[1])
reading = False reading = False
data.append((n_det, e, pt2, err_pt2, rpt2, err_rpt2, e_ex)) new_data = " {:8d} {:16.8f} {:e} {:e} {:e} {:e} {:16.8f}".format(n_det, e, pt2, err_pt2, rpt2, err_rpt2, e_ex)
data.append(new_data)
n_det = e = pt2 = err_pt2 = rpt2 = err_rpt2 = e_ex = None n_det = e = pt2 = err_pt2 = rpt2 = err_rpt2 = e_ex = None
return data return data
@ -49,6 +50,6 @@ def extract_data(output):
data = extract_data(output) data = extract_data(output)
for item in data: for item in data:
print(" ".join(str(x) for x in item)) print(item)