-
Notifications
You must be signed in to change notification settings - Fork 337
Fixed #1077 Add extra check for window size #1078
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
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:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks pretty good. I left a few minor comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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