-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add multifrequency detection to txt files #150
Conversation
… as ordered timeseries
Codecov Report
@@ Coverage Diff @@
## master #150 +/- ##
==========================================
+ Coverage 65.04% 66.66% +1.61%
==========================================
Files 7 7
Lines 515 540 +25
==========================================
+ Hits 335 360 +25
Misses 180 180
|
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.
LGTM but we're gonna have to add a test for this function in test_txt.py
unit test added closing #151 |
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.
Good start, let's see if we can improve it a bit more!
I would not check the channel at random positions. I think it would be wiser to check the start, middle and end of the channel unless we are certain that whatever random positions we choose the result will always be the same. |
It's actually more probable that the results will be the same checking three random positions in the middle rather than at the start and the end - in files that start earlier than the beginning of the sequence and have padding at the end, the trigger channel (and any other similar thing) might have the same value at the beginning and at the end for more than your sampling. This might lead to incorrect frequency classification. |
Solution: why don't we open an issue about it, and merge in this PR? |
We can discuss about this, I propose that the function does the process that is doing right now but in 3 subarrays that are seeded in random positions and put the size of these positions as an optional parameter |
but if you want we can merge this for the moment |
So, what do we do here? |
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.
LGTM, let's merge it in now and open an issue about improving the multifreq check.
As soon as @eurunuela agrees on the changes, you can merge this in! |
let me solve the merge conflic |
However, please update your branch with respect to the master branch |
@smoia, @eurunuela I think with this last commit I solved the problem with the while loop. Now instead of limiting the while loop to a fix number, I get the maximum number of repeated samples as a reference, This way the number of samples that are not tested for multi frequency in each channel is reduce to a few hundred but the hole array is inspected without need of dividing it. This means we don't have to open an issue about improving the multifrequency check |
therefore I think @smoia needs to check again the function |
Sry for ruining your approval |
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.
It looks good to me in general aside from the triple loop. However I think a couple of points should be resolved before merging.
Co-Authored-By: Eneko Uruñuela <13706448+eurunuela@users.noreply.github.com>
Nice, Once @smoia finishes with the review I will merge |
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.
LGTM!
Closes #56
Adds multi frequency support for labchart files
Proposed Changes
-Adds multi frequency support for labchart files