Commit 20b47400 authored by DN's avatar DN

Fixed bug : first sample point intensity was not computed.

parent bf9ac899
......@@ -150,7 +150,7 @@ class XsocsH5(XsocsH5Base):
shape = ctx.shape
intensity = _np.zeros(shape=(shape[0],), dtype=dtype)
img_buffer = _np.array(ctx[0], dtype=dtype)
for idx in range(1, shape[0]):
for idx in range(0, shape[0]):
ctx.read_direct(img_buffer, idx)
intensity[idx] = _np.sum(img_buffer)
return intensity
......
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