Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
kmap
xsocs
Commits
20b47400
Commit
20b47400
authored
Dec 10, 2016
by
DN
Browse files
Fixed bug : first sample point intensity was not computed.
parent
bf9ac899
Changes
1
Hide whitespace changes
Inline
Side-by-side
kmap/io/XsocsH5.py
View file @
20b47400
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment