You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#124 Record iteration when recording only zeros (#125)
As pointed in the comment in the corresponding issues, we want to ensure
we trigger the picker logic at least once to keep the invariant of the
loop, that is to say that the picking logic has been executed at least
once for last_picked_index, which is not the case for zero when there
are only zeros.
To do so we use and Option, and initialize to None, to make sure the
pick logic is ran at least once.
I added a test that collect the record and check for their count.
Fixes#124
0 commit comments