Skip to content

Commit bb2dde4

Browse files
committed
Fixed a bug in Events class
Signed-off-by: Deepanshu <deepanshu2017@gmail.com>
1 parent e35252d commit bb2dde4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/PyEvents.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ namespace hydra_python {
121121
[](const hydra::Events<N, hydra::BACKEND::sys_t>& e, \
122122
hydra::GInt_t idx) { \
123123
hypy::BACKEND##_vector_float4 daughters(e.size()); \
124+
int counter = 0;\
124125
for (auto i = e.DaughtersBegin(idx); i != e.DaughtersEnd(idx); ++i) \
125-
daughters[idx] = *i; \
126+
daughters[counter++] = *i; \
126127
return daughters;\
127128
}, "idx"_a, \
128129
"Daughters. Get all N daughters of given " \

0 commit comments

Comments
 (0)