Commit 4c702419 authored by Christoph Sommer's avatar Christoph Sommer

fixed bug in BF loader

parent 4efd92d6
......@@ -201,9 +201,10 @@ class BFListReader(object):
res = []
for fn in self.img_fns:
dims = get_pixel_dimensions(fn)
print(" -- ", fn, dims)
ir = bf.ImageReader(str(fn))
for t in range(dims.t):
img = numpy.zeros((dims.t, dims.z, dims.y, dims.x, dims.c), numpy.float32)
for z in range(dims.z):
......@@ -213,9 +214,9 @@ class BFListReader(object):
c=c,
t=t, rescale=False)
if "Z" not in axes:
img = img[:, 0, ...]
res.append(img)
if "Z" not in axes:
img = img[:, 0, ...]
res.append(img)
ir.close()
return res
......
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