From 11ffd4571df91520db8f7ab1ac1c3cb91026bc48 Mon Sep 17 00:00:00 2001 From: jkuhl-uni Date: Tue, 20 Dec 2022 18:01:46 +0100 Subject: [PATCH] a bit of housekeeping --- pyerrors/input/openQCD.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pyerrors/input/openQCD.py b/pyerrors/input/openQCD.py index 7774277e..35c9e255 100644 --- a/pyerrors/input/openQCD.py +++ b/pyerrors/input/openQCD.py @@ -1072,15 +1072,12 @@ def read_ms5_xsf(path, prefix, qc, corr): if not corr in placesBB: tmpcorr = asascii[1+2*tmax*placesBI.index(corr):1+2*tmax*placesBI.index(corr)+2*tmax] - corrres = [[],[]] - for i in range(len(tmpcorr)): corrres[i%2].append(tmpcorr[i]) - for t in range(int(len(tmpcorr)/2)): realsamples[t].append(corrres[0][t]) - for t in range(int(len(tmpcorr)/2)): imagsamples[t].append(corrres[1][t]) else: - tmpcorr = asascii[1+2*tmax*len(placesBI):1+2*tmax*len(placesBI)+2] - corrres = [[],[]] - for i in range(len(tmpcorr)): - corrres[i%2].append(tmpcorr[i]) + tmpcorr = asascii[1+2*tmax*len(placesBI)+2*placesBI.index(corr):1+2*tmax*len(placesBI)+2*placesBI.index(corr)+2] + corrres = [[],[]] + for i in range(len(tmpcorr)): corrres[i%2].append(tmpcorr[i]) + for t in range(int(len(tmpcorr)/2)): realsamples[t].append(corrres[0][t]) + for t in range(int(len(tmpcorr)/2)): imagsamples[t].append(corrres[1][t]) # we have the data now... but we need to re format the whole thing and put it into Corr objects. realObs = [] imagObs = []