Fixed #1077 Add extra check for window size#1078
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1078 +/- ##
=======================================
Coverage 97.31% 97.32%
=======================================
Files 93 93
Lines 15239 15266 +27
=======================================
+ Hits 14830 14857 +27
Misses 409 409 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
seanlaw
left a comment
There was a problem hiding this comment.
Can you please provide a few test cases? It's hard to know what the parameters are related to
There was a problem hiding this comment.
@seanlaw
I've added two tests. I left one comment for your consideration.
|
@seanlaw What is your opinion? It is simpler. Its only downside is that it takes longer but still should be fast and its impact on performance should be negligible. |
|
I don't mind it if the time is negligible but I wonder if we can either replace the for loop with numpy vectorized functions? |
This should work.
Cool. Will check it. |
Hmmm, it feels like there's likely a simple equation that can be used rather than generating the full set of Update I think it's simply
Actually, as I think about it more, I think I understand.
It looks like there might be a caveat if |
That was the logic I was trying to explain in that very long comment (from a previous commit: b7494d9). You have a strong skill for delivering a concise message while avoiding verbosity!!!
YES! EXACTLY!! And, in fact, we just need to check if its furthest neighbour is eliminated. For the central-most subsequence that starts at
I think |
|
@seanlaw |
seanlaw
left a comment
There was a problem hiding this comment.
Everything looks pretty good. I left a few minor comments
seanlaw
left a comment
There was a problem hiding this comment.
@NimaSarajpoor Everything looks good on my end aside from a few minor changes. Please let me know if this is ready to be merged.
I addressed the comments. If you have no concern regarding this comment, it should be ready to be merged now. |
|
Thank you for contributing this @NimaSarajpoor! |
See #1077