-
Notifications
You must be signed in to change notification settings - Fork 35
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
Reference interpolates instead of deletes channels manually marked as bad, closes #146 #156
Conversation
…nterpolated, without being removed (which had been causing an error)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #156 +/- ##
=======================================
Coverage 98.59% 98.60%
=======================================
Files 7 7
Lines 713 717 +4
=======================================
+ Hits 703 707 +4
Misses 10 10 ☔ View full report in Codecov by Sentry. |
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.
Thanks! Could you please make a small modification to an existing test to also cover this behavior?
Also, when would "bad_manual": ...,
now be printed, and when would it not be printed?
For example, it won't come up in
pyprep/pyprep/find_noisy_channels.py
Line 17 in 48b7349
class NoisyChannels: |
Sure, I can take a look at the tests, probably on Monday. Re: Internally, |
Thanks for pointing this out, this is really dead code:
Thanks for looking into this, I just had a look as well and I had forgotten about this. It would be nice to have the same logic in NoisyChannels, that is, report about channels in Furthermore if we implemented this in Lines 212 to 218 in 48b7349
I am sorry that this comment changes the scope of this PR somewhat, but I hadn't looked into the issue deeply enough to understand all implications before you got started. |
…res a specific format to work properly)
Okay, I've added a Now |
Thanks a lot @john-veillette! |
PR Description
Fixes #146, an error that results from the
raw.pick_types
call insidepyprep.Reference
deleting channels which have been marked as bad prior to PREP. These channels should now be interpolated instead.A new field
'bad_manual'
is added tonoisy_channels_before_interpolation
dict so there's still a record the channel was interpolated. This happens insideReference
; theNoisyChannels
class is untouched.Merge Checklist
closes #<issue-number>
to automatically close an issueCITATION.cff
file