Commit b14f4e4d authored by Carsten Richter's avatar Carsten Richter Committed by operator for beamline
Browse files

more py3 in id01h5

parent a8c1d5b9
......@@ -491,6 +491,8 @@ class Scan(h5py.Group):
_i=0
img_paths_tmp.sort() # very lazy but works
for impath in img_paths_tmp:
if isinstance(impath, bytes):
impath = impath.decode()
#impath = impath
if impath.endswith("tif"):
#print("###TIFS####")
......
......@@ -285,7 +285,7 @@ def fetch_image_files(scan, imgroot=None,explicit_beamline=None):
print("data from beamline: ", explicit_beamline )
detname="amsGaAs"
datafolder=os.path.join(imgroot,imgroot.split("/")[-2].split("AD")[-1]+"_S%04i"%int(header[0].split()[1])+"/")
tiffs=[datafolder+x for x in os.listdir(datafolder) if x.endswith("tif")]
tiffs=[datafolder+x for x in os.listdir(datafolder) if x.endswith(b"tif")]
returndict={detname:tiffs}
#pdb.set_trace()
else:
......
Markdown is supported
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