mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 12:03:42 +02:00
a bit of housekeeping
This commit is contained in:
parent
4fb27462bd
commit
11ffd4571d
1 changed files with 5 additions and 8 deletions
|
@ -1072,15 +1072,12 @@ def read_ms5_xsf(path, prefix, qc, corr):
|
||||||
|
|
||||||
if not corr in placesBB:
|
if not corr in placesBB:
|
||||||
tmpcorr = asascii[1+2*tmax*placesBI.index(corr):1+2*tmax*placesBI.index(corr)+2*tmax]
|
tmpcorr = asascii[1+2*tmax*placesBI.index(corr):1+2*tmax*placesBI.index(corr)+2*tmax]
|
||||||
|
else:
|
||||||
|
tmpcorr = asascii[1+2*tmax*len(placesBI)+2*placesBI.index(corr):1+2*tmax*len(placesBI)+2*placesBI.index(corr)+2]
|
||||||
corrres = [[],[]]
|
corrres = [[],[]]
|
||||||
for i in range(len(tmpcorr)): corrres[i%2].append(tmpcorr[i])
|
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)): realsamples[t].append(corrres[0][t])
|
||||||
for t in range(int(len(tmpcorr)/2)): imagsamples[t].append(corrres[1][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])
|
|
||||||
# we have the data now... but we need to re format the whole thing and put it into Corr objects.
|
# we have the data now... but we need to re format the whole thing and put it into Corr objects.
|
||||||
realObs = []
|
realObs = []
|
||||||
imagObs = []
|
imagObs = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue