Skip to content
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

[MRG] ENH: add skip_by_annotation to notch_filter #11388

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

jasmainak
Copy link
Member

Partial fix for #10447

This adds a skip_by_annotation for notch filtering

@jasmainak jasmainak force-pushed the skip_annot_filter branch 9 times, most recently from 80896ac to 4782426 Compare December 26, 2022 02:14
@jasmainak jasmainak changed the title ENH: add skip_by_annotation to notch_filter [MRG] ENH: add skip_by_annotation to notch_filter Dec 26, 2022
@jasmainak jasmainak changed the title [MRG] ENH: add skip_by_annotation to notch_filter [WIP] ENH: add skip_by_annotation to notch_filter Dec 26, 2022
@jasmainak
Copy link
Member Author

jasmainak commented Dec 26, 2022

Is there a way to make the length of the notch filter shorter @larsoner ? Even though I have implemented this, it's pretty useless for my data since the ISI is around 300-500 ms with a stim artifact that I want to skip with annotations. Alternatively, would it make sense to concatenate the segments before filtering?

@larsoner
Copy link
Member

larsoner commented Jan 2, 2023

You can set filter_length to something other than 'auto', but assuming you want to use 'auto' (which is a good choice generally) then you probably need to extend the transition bands for the filter, which would knock out more frequency content...

@jasmainak jasmainak changed the title [WIP] ENH: add skip_by_annotation to notch_filter [MRG] ENH: add skip_by_annotation to notch_filter Jan 3, 2023
@jasmainak
Copy link
Member Author

Thanks for the suggestion! That sounds fair, so I changed the PR status to MRG again.

Copy link
Member

@agramfort agramfort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@agramfort agramfort merged commit b298e6d into mne-tools:main Jan 4, 2023
larsoner added a commit to larsoner/mne-python that referenced this pull request Jan 4, 2023
* upstream/main:
  [MRG] ENH: add skip_by_annotation to notch_filter (mne-tools#11388)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants