Do not filter or smooth if data len is too small#201
Do not filter or smooth if data len is too small#201
Conversation
|
Yeah, I've looked at this a few times and this probably fixes it. I just refrained from getting in a fix because I found I couldn't reproduce the error - it looks like we only get the error when we are in comm. But if we don't care about proving that the fix works for the high background error, we can go down this path. |
Let's do that. The proof will be when we stop getting those error alert emails. |
jeanconn
left a comment
There was a problem hiding this comment.
I don't have a strong opinion for or against this. I'm not sure if it is a great idea to try to return the unfiltered/unsmoothed value if yin is too short, or if we're better off with the error here.
|
Closing since the real driver for this has been implemented elsewhere. If need be we can revisit this. |
Description
This should fix the frequent errors we get in the aca high background monitor like:
However, I am not sure I entirely understand what is happening. Here is the current code:
The
smoothfunction actually raises an exception if thedata length < window_len, so I don't get why this is working at all unless exceptions are being caught and ignored.For reference:
Interface impacts
Testing
Unit tests
Independent check of unit tests by Jean
Functional tests
No functional testing.