Commit 8013795f authored by Alessandro Mirone's avatar Alessandro Mirone
Browse files

importing again the high resolution deconvolution

parent c92ea4c2
......@@ -704,7 +704,7 @@ def calculate_recenterings(mydata):
h5B = h5B_f[bariB_groupname]
offs = {}
chiavi = filterRoiList(h5A.keys())
chiavi = filterRoiList(h5A.keys(), prefix="")
for c in chiavi:
bA = h5A[c]["barix"].value + h5A[c]["cornerpos"][:][1]
bB = h5B[c]["barix"].value + h5B[c]["cornerpos"][:][1]
......@@ -1033,7 +1033,7 @@ def loadscan_2Dimages(mydata):
h5f = h5py.File(recenterings_filename,"r")
h5 = h5f[recenterings_groupname]
recenterings= {}
chiavi = filterRoiList(h5.keys())
chiavi = filterRoiList(h5.keys(), prefix="")
for c in chiavi:
recenterings[int(c)]= h5[c][:]
if recenterings[int(c)].shape == (2,2):
......@@ -1103,7 +1103,9 @@ def loadscan_2Dimages(mydata):
h5f = h5py.File(recenterings_confirmed_filename,"w")
h5 = h5f.require_group(recenterings_confirmed_groupname)
for c in chiavi:
h5[c] = reader.recenterings[int(c)]
if c in h5:
del h5[c]
h5[c] = reader.recenterings[int(c)][()]
h5f.flush()
h5f.close()
h5f = None
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment