-
Notifications
You must be signed in to change notification settings - Fork 33
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
GetClosestOneBasedSpectrumNumber using Binary Search instead of for loop #716
GetClosestOneBasedSpectrumNumber using Binary Search instead of for loop #716
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #716 +/- ##
=======================================
Coverage 75.95% 75.96%
=======================================
Files 170 170
Lines 28801 28823 +22
=======================================
+ Hits 21876 21895 +19
- Misses 6925 6928 +3
|
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.
I left a couple of comments, but I see one major issue: A dictionary isn't an ordered collection, so accessing dictionary members by an index will give wacky results sometimes
You are right. I changed it to |
This reverts commit 5e7cff8.
This feature was eliminated from the code
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.
Looks good to me :)
…laboy/mzLib-Fork into GetClosestOneBasedScanRefactor
The new method uses the Binary Search algorithm to search the closes spectrum of given retention time instead of a for loop.