-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MRG Handle triggers split between buffers #3738
Conversation
…buffers is based on the minimum number of trigger samples required
…s on at the beginning of the buffer
30878cd
to
5c1dc47
Compare
95e9372
to
071df35
Compare
Current coverage is 87.42% (diff: 100%)@@ master #3738 diff @@
==========================================
Files 343 343
Lines 61000 61041 +41
Methods 0 0
Messages 0 0
Branches 9326 9332 +6
==========================================
+ Hits 53326 53367 +41
Misses 4924 4924
Partials 2750 2750
|
LGTM. @Odingod can you take a look? |
Seems to be working, except for one small bug that is not worth fixing in my opinion. If the the first buffer starts with the trigger channel active the onset is missed and the code gets stuck like it used to. However the trigger channel shouldn't be high at the beginning of the measurement (unless using some kind of continuous measure pressure e.g.?). Maybe this is still worth a mention? |
|
Great, so ready to merge?
I would say it is expected that an event is not detected? Does this get detected as an |
Thanks @Odingod for taking a stab at this. Looking forward to more contributions! We should increase the bus factor of the |
@jasmainak changing the behavior so that the isi_max is respected in all situations might make things more consistent, but is worth a second PR. I don't see any other problems for merging, so go ahead! |
Merged! |
Taking over #3696
Closes #3696 and #3695
cc @Odingod and @LauriParkkonen. Let me know if this works for you guys. Tests pass on my box.