[Mne_analysis] Filtering with EpochsArray

Emanuela Liaci emanuela.liaci at gmail.com
Wed Aug 10 09:06:06 EDT 2016
Search archives:

Hi,

thanks for your response. The problem is that the format of my raw data is
not available in mne python and for this reason I created a 3d array for my
epochs. So I don't have raw data.

Cheers,
Emanuela Liaci

On Wed, Aug 10, 2016 at 2:43 PM, JR KING <jeanremi.king at gmail.com> wrote:

> Hi Emanuela,
>
> We recommend not applying filter on epoched data, as the epochs edges
> generate important artifacts. Instead, you can apply filters on the raw
> data using raw.filter()
>
> If you really want to apply in on epochs data, you can retrieve the data
> array, and pass it to mne.filter functions: e.g.
>
> epochs_data = epochs.get_data()
> low, high = 10., 30.
> epochs_data_filt = mne.filter.band_pass_filter(epochs_data, epochs.info['sfreq'],
> low, high)
> epochs_filt = mne.EpochsArray(epochs_data_filt, epochs.info)
>
> Hope that helps,
>
> Best,
>
> Jean-Rémi
>
> On 10 August 2016 at 08:01, Emanuela Liaci <emanuela.liaci at gmail.com>
> wrote:
>
>> Hello,
>>
>> I have built my epochs with EpochsArray and I would like to apply a
>> low-pass filter. But when I tried to do this:
>>
>> epochs = mne.EpochsArray(ElectrodeArray, info=info, baseline = (None,
>> 0.04))
>> epochs.filter(l_freq=None, h_freq=25.0)
>>
>> I get the error the following error: "AttributeError: 'EpochsArray'
>> object has no attribute 'filter'".
>>
>> How can I solve this issue?
>>
>> Many thanks,
>> Emanuela Liaci
>>
>>
>>
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>>
>>
>> The information in this e-mail is intended only for the person to whom it
>> is
>> addressed. If you believe this e-mail was sent to you in error and the
>> e-mail
>> contains patient information, please contact the Partners Compliance
>> HelpLine at
>> http://www.partners.org/complianceline . If the e-mail was sent to you
>> in error
>> but does not contain patient information, please contact the sender and
>> properly
>> dispose of the e-mail.
>>
>>
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20160810/372ef57c/attachment.html 


More information about the Mne_analysis mailing list