<p><span style="padding: 3px 10px; border-radius: 5px; color: #ffffff; font-weight: bold; display: inline-block; background-color: #ff0000;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;External Email - Use Caution&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></p><p></p><div dir="ltr"><div dir="ltr">Dear All,<div><br></div><div>The response from epochs.drop_log is [[&#39;NO_DATA&#39;]], yet i get the message &quot;1 bad epochs dropped&quot;</div><div><br></div><div>Is there anyway to  figure out why all my epochs are being dropped?</div><div><br></div><div><b><u>source code below</u></b></div><div>        channames = [&#39;Cz&#39;,&#39;Fz&#39;,&#39;C3&#39;,&#39;C4&#39;,&#39;F3&#39;,&#39;F4&#39;,&#39;P7&#39;,&#39;P8&#39;] </div><div>        ch_types = [&#39;eeg&#39;,&#39;eeg&#39;,&#39;eeg&#39;,&#39;eeg&#39;,&#39;eeg&#39;,&#39;eeg&#39;,&#39;eeg&#39;,&#39;eeg&#39;]<br>        # Sampling rate of the Nautilus machine<br>        sfreq = 250  # Hz for eeg<br>       # Create the info structure needed by MNE<br>        info = mne.create_info(ch_names=channames, sfreq=sfreq, ch_types=ch_types)<br>        raw = mne.io.RawArray(dataconv1, info)<br>        raw.set_annotations(None)<br>        raw.del_proj()<br>        picks =mne.pick_types(<a href="http://raw.info">raw.info</a>, meg=False, eeg=True, stim=True, eog=False,exclude=&#39;bads&#39;)<br>        raw=raw.filter(0.1, 120, fir_design=&#39;firwin&#39;)<br>        raw=raw.notch_filter(np.arange(50, 120, 50), picks=picks, filter_length=&#39;auto&#39;, phase=&#39;zero&#39;)<br>        evenfile=mne.make_fixed_length_events(raw, id=1, start=0, stop=None, duration=4.0, first_samp=True, overlap=0.0)<br>        epochs = mne.Epochs(raw, evenfile, event_id=event_id, tmin=-0.2, tmax=4,  picks=picks, baseline=(-0.2, 0), event_repeated=&#39;drop&#39;,proj=False, preload=True, reject_by_annotation=None)<br>        print(epochs.drop_log)<br></div><div>data = epochs.get_data()<br></div><div><br></div><div><br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px"><span style="color:rgb(51,51,51);font-family:&quot;Droid Serif&quot;">A. Ighoyota ben</span></div><div style="font-size:12.8px"><span style="color:rgb(51,51,51);font-family:&quot;Droid Serif&quot;">Junior Researcher HCI (PhD in-view) </span></div><div style="font-size:12.8px"><span style="color:rgb(51,51,51);font-family:&quot;Droid Serif&quot;;font-size:12.8px">Tallinn University, Estonia</span><br></div><div style="font-size:12.8px"><span style="color:rgb(51,51,51);font-family:&quot;Droid Serif&quot;">School of digital Technologies.</span></div><div style="font-size:12.8px"><span style="color:rgb(51,51,51);font-family:&quot;Droid Serif&quot;">mobile:<a href="tel:+372%205832%206393" value="+37258326393" style="color:rgb(17,85,204)" target="_blank">+372582</a>78794</span></div><div style="font-size:12.8px"><span style="color:rgb(51,51,51);font-family:&quot;Droid Serif&quot;">skype: ighoyota-ben</span></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 24 Jul 2020 at 04:58, &lt;<a href="mailto:mne_analysis-request@nmr.mgh.harvard.edu">mne_analysis-request@nmr.mgh.harvard.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send Mne_analysis mailing list submissions to<br>
        <a href="mailto:mne_analysis@nmr.mgh.harvard.edu" target="_blank">mne_analysis@nmr.mgh.harvard.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:mne_analysis-request@nmr.mgh.harvard.edu" target="_blank">mne_analysis-request@nmr.mgh.harvard.edu</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:mne_analysis-owner@nmr.mgh.harvard.edu" target="_blank">mne_analysis-owner@nmr.mgh.harvard.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Mne_analysis digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: epoch dropped problem (Alexandre Gramfort)<br>
   2. Re: loading the subject from BRAINSTORM (Alexandre Gramfort)<br>
   3. Re: Mne_analysis Digest, Vol 150, Issue 40 (<a href="mailto:balandongiv@gmail.com" target="_blank">balandongiv@gmail.com</a>)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 23 Jul 2020 22:57:00 +0200<br>
From: Alexandre Gramfort &lt;<a href="mailto:alexandre.gramfort@inria.fr" target="_blank">alexandre.gramfort@inria.fr</a>&gt;<br>
Subject: Re: [Mne_analysis] epoch dropped problem<br>
To: Discussion and support forum for the users of MNE Software<br>
        &lt;<a href="mailto:mne_analysis@nmr.mgh.harvard.edu" target="_blank">mne_analysis@nmr.mgh.harvard.edu</a>&gt;<br>
Message-ID:<br>
        &lt;CADeotZoS51gPzBn+oLTxCnLTgtpGy=<a href="mailto:1DyWrFEnOhfM8Ouuevjg@mail.gmail.com" target="_blank">1DyWrFEnOhfM8Ouuevjg@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
        External Email - Use Caution        <br>
<br>
What do epochs.drop_log and epochs.plot_drop_log() give you?<br>
<br>
Alex<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 23 Jul 2020 22:58:15 +0200<br>
From: Alexandre Gramfort &lt;<a href="mailto:alexandre.gramfort@inria.fr" target="_blank">alexandre.gramfort@inria.fr</a>&gt;<br>
Subject: Re: [Mne_analysis] loading the subject from BRAINSTORM<br>
To: Discussion and support forum for the users of MNE Software<br>
        &lt;<a href="mailto:mne_analysis@nmr.mgh.harvard.edu" target="_blank">mne_analysis@nmr.mgh.harvard.edu</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:CADeotZrjoB0oSOmbXpzESX-_39Dwmqr6VNiSobMqg_043nOD9w@mail.gmail.com" target="_blank">CADeotZrjoB0oSOmbXpzESX-_39Dwmqr6VNiSobMqg_043nOD9w@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
        External Email - Use Caution        <br>
<br>
hi,<br>
<br>
no it&#39;s not that simple as Brainstorm decimates the cortex while MNE<br>
subsamples the high resolution mesh.<br>
<br>
Alex<br>
<br>
<br>
On Thu, Jul 23, 2020 at 4:06 PM Abdallah Qusaibe<br>
&lt;<a href="mailto:abdallah.qusaibe@gmail.com" target="_blank">abdallah.qusaibe@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;         External Email - Use Caution<br>
&gt;<br>
&gt; Hi All,<br>
&gt;<br>
&gt; Can we load in mne the subject (inorder to use the cortex mesh) used in Brainstorm,<br>
&gt;<br>
&gt; Cheers<br>
&gt; Abdallah<br>
&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Fri, 24 Jul 2020 09:55:33 +0800<br>
From: &lt;<a href="mailto:balandongiv@gmail.com" target="_blank">balandongiv@gmail.com</a>&gt;<br>
Subject: Re: [Mne_analysis] Mne_analysis Digest, Vol 150, Issue 40<br>
To: &lt;<a href="mailto:mne_analysis@nmr.mgh.harvard.edu" target="_blank">mne_analysis@nmr.mgh.harvard.edu</a>&gt;<br>
Message-ID: &lt;004e01d6615d$85632b50$902981f0$@<a href="http://gmail.com" rel="noreferrer" target="_blank">gmail.com</a>&gt;<br>
Content-Type: text/plain;       charset=&quot;us-ascii&quot;<br>
<br>
        External Email - Use Caution        <br>
<br>
Dear Clemens, Larson, Phillip,<br>
<br>
Thanks for the detail explanation, really appreciate it.<br>
<br>
Just a suggestion, maybe part of the discussion can be incorporated<br>
somewhere along with mne FAQ or equivalent. This might be helpful,<br>
especially to those new in the field.<br>
<br>
Rodney<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:mne_analysis-bounces@nmr.mgh.harvard.edu" target="_blank">mne_analysis-bounces@nmr.mgh.harvard.edu</a><br>
&lt;<a href="mailto:mne_analysis-bounces@nmr.mgh.harvard.edu" target="_blank">mne_analysis-bounces@nmr.mgh.harvard.edu</a>&gt; On Behalf Of<br>
<a href="mailto:mne_analysis-request@nmr.mgh.harvard.edu" target="_blank">mne_analysis-request@nmr.mgh.harvard.edu</a><br>
Sent: Thursday, 23 July, 2020 9:10 PM<br>
To: <a href="mailto:mne_analysis@nmr.mgh.harvard.edu" target="_blank">mne_analysis@nmr.mgh.harvard.edu</a><br>
Subject: Mne_analysis Digest, Vol 150, Issue 40<br>
<br>
Send Mne_analysis mailing list submissions to<br>
        <a href="mailto:mne_analysis@nmr.mgh.harvard.edu" target="_blank">mne_analysis@nmr.mgh.harvard.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:mne_analysis-request@nmr.mgh.harvard.edu" target="_blank">mne_analysis-request@nmr.mgh.harvard.edu</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:mne_analysis-owner@nmr.mgh.harvard.edu" target="_blank">mne_analysis-owner@nmr.mgh.harvard.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific than<br>
&quot;Re: Contents of Mne_analysis digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: Why does MNE resample method does not sample the data<br>
      point to point? (Eric Larson)<br>
   2. Re: Why does MNE resample method does not sample the data<br>
      point to point? (Brunner, Clemens (<a href="mailto:clemens.brunner@uni-graz.at" target="_blank">clemens.brunner@uni-graz.at</a>))<br>
   3. Re: Why does MNE resample method does not sample the data<br>
      point to point? (Phillip Alday)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 23 Jul 2020 08:40:56 -0400<br>
From: Eric Larson &lt;<a href="mailto:larson.eric.d@gmail.com" target="_blank">larson.eric.d@gmail.com</a>&gt;<br>
Subject: Re: [Mne_analysis] Why does MNE resample method does not<br>
        sample the data point to point?<br>
To: Discussion and support forum for the users of MNE Software<br>
        &lt;<a href="mailto:mne_analysis@nmr.mgh.harvard.edu" target="_blank">mne_analysis@nmr.mgh.harvard.edu</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:CAGu2niVV%2B79nq5Yu17B4VzB3PS71x7sFTy8HKNukDxnaDdi6hQ@mail.gmail.com" target="_blank">CAGu2niVV+79nq5Yu17B4VzB3PS71x7sFTy8HKNukDxnaDdi6hQ@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
        External Email - Use Caution        <br>
<br>
&gt;<br>
&gt; My understanding of downsampling is that it is an operation to <br>
&gt; decrease the sample rate of x by keeping the first sample and then <br>
&gt; every nth sample after the first.<br>
&gt;<br>
<br>
Resampling typically consists of two steps: low-pass filtering to avoid<br>
aliasing, then sample rate reduction (subselecting samples from the<br>
resulting signal). The low-passing actually changes the values, so the<br>
subselection-of-filtered-data step will not necessarily yield points that<br>
were &quot;on&quot; the original signal.<br>
<br>
<br>
&gt; May I know whether this issue is due to the ringing artifacts or due <br>
&gt; to other problems?<br>
&gt;<br>
<br>
In this case it&#39;s likely due to the (implicit) low-pass filtering in the<br>
frequency-domain resampling of the signal. It looks pretty reasonable to me.<br>
If you want to play around with it a bit, you can<br>
<br>
1. Call scipy.signal.resample directly on your data and see how closely it<br>
matches.<br>
2. Pad your signal, call scipy.signal.resample, and remove the (now<br>
reduced-length) padding -- this is what MNE does internally.<br>
3. Use scipy.signal.resample_poly directly on your data.<br>
4. Manually low-pass filter and then directly subselect samples from the<br>
low-passed signal, which is what resample_poly does internally.<br>
<br>
Hopefully these all give similar results for your signal(s).<br>
<br>
Eric<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL:<br>
<a href="http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200723/a8812d4e/attachment-0001.html" rel="noreferrer" target="_blank">http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200723/<br>
a8812d4e/attachment-0001.html</a> <br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 23 Jul 2020 12:57:29 +0000<br>
From: &quot;Brunner, Clemens (<a href="mailto:clemens.brunner@uni-graz.at" target="_blank">clemens.brunner@uni-graz.at</a>)&quot;<br>
        &lt;<a href="mailto:clemens.brunner@uni-graz.at" target="_blank">clemens.brunner@uni-graz.at</a>&gt;<br>
Subject: Re: [Mne_analysis] Why does MNE resample method does not<br>
        sample the data point to point?<br>
To: Discussion and support forum for the users of MNE Software<br>
        &lt;<a href="mailto:mne_analysis@nmr.mgh.harvard.edu" target="_blank">mne_analysis@nmr.mgh.harvard.edu</a>&gt;<br>
Message-ID: &lt;<a href="mailto:21199B34-7BD6-4C1B-81CC-749DFB86E3FC@uni-graz.at" target="_blank">21199B34-7BD6-4C1B-81CC-749DFB86E3FC@uni-graz.at</a>&gt;<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
        External Email - Use Caution        <br>
<br>
Also note that the resample example<br>
(<a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.resample.html" rel="noreferrer" target="_blank">https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.resample.<br>
html</a>) shows upsampling, i.e. the data has a lower sampling rate than the<br>
resampled result. However, in the case of downsampling it is usually<br>
necessary to avoid aliasing of frequencies above the resampled Nyquist<br>
frequency. Therefore, the signal is typically low-pass filtered before the<br>
resampling step. As Eric mentioned, this anti-aliasing filter is what<br>
actually changes the signal values, but it is necessary to avoid aliasing<br>
artifacts.<br>
<br>
AFAIK, scipy.signal.resample doesn&#39;t include an anti-aliasing filter, but<br>
both scipy.signal.resample_poly as well as scipy.signal.decimate apply such<br>
a low-pass filter before resampling. That&#39;s also what MNE does.<br>
<br>
Clemens<br>
<br>
<br>
&gt; On 23.07.2020, at 14:40, Eric Larson &lt;<a href="mailto:larson.eric.d@gmail.com" target="_blank">larson.eric.d@gmail.com</a>&gt; wrote:<br>
&gt; <br>
&gt;         External Email - Use Caution        <br>
&gt; <br>
&gt; <br>
&gt; My understanding of downsampling is that it is an operation to decrease<br>
the sample rate of x by keeping the first sample and then every nth sample<br>
after the first.<br>
&gt; <br>
&gt; Resampling typically consists of two steps: low-pass filtering to avoid<br>
aliasing, then sample rate reduction (subselecting samples from the<br>
resulting signal). The low-passing actually changes the values, so the<br>
subselection-of-filtered-data step will not necessarily yield points that<br>
were &quot;on&quot; the original signal.<br>
&gt;  <br>
&gt; May I know whether this issue is due to the ringing artifacts or due to<br>
other problems?<br>
&gt; <br>
&gt; In this case it&#39;s likely due to the (implicit) low-pass filtering in <br>
&gt; the frequency-domain resampling of the signal. It looks pretty <br>
&gt; reasonable to me. If you want to play around with it a bit, you can<br>
&gt; <br>
&gt; 1. Call scipy.signal.resample directly on your data and see how closely it<br>
matches.<br>
&gt; 2. Pad your signal, call scipy.signal.resample, and remove the (now<br>
reduced-length) padding -- this is what MNE does internally.<br>
&gt; 3. Use scipy.signal.resample_poly directly on your data.<br>
&gt; 4. Manually low-pass filter and then directly subselect samples from the<br>
low-passed signal, which is what resample_poly does internally.<br>
&gt; <br>
&gt; Hopefully these all give similar results for your signal(s).<br>
&gt; <br>
&gt; Eric<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 23 Jul 2020 15:09:44 +0200<br>
From: Phillip Alday &lt;<a href="mailto:phillip.alday@mpi.nl" target="_blank">phillip.alday@mpi.nl</a>&gt;<br>
Subject: Re: [Mne_analysis] Why does MNE resample method does not<br>
        sample the data point to point?<br>
To: Discussion and support forum for the users of MNE Software<br>
        &lt;<a href="mailto:mne_analysis@nmr.mgh.harvard.edu" target="_blank">mne_analysis@nmr.mgh.harvard.edu</a>&gt;, &quot;Brunner, Clemens<br>
        (<a href="mailto:clemens.brunner@uni-graz.at" target="_blank">clemens.brunner@uni-graz.at</a>)&quot; &lt;<a href="mailto:clemens.brunner@uni-graz.at" target="_blank">clemens.brunner@uni-graz.at</a>&gt;<br>
Message-ID: &lt;<a href="mailto:16e39842-34bd-465d-9491-b5651302add4@mpi.nl" target="_blank">16e39842-34bd-465d-9491-b5651302add4@mpi.nl</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
        External Email - Use Caution        <br>
<br>
I think the up- vs. downsampling distinction is also really important for<br>
expectations here, as is the distinction between decimating and resampling<br>
(I recall there was a thread about that a few years back with similar<br>
confusion, if somebody wants to do the effort of searching for it)<br>
<br>
Phillip<br>
<br>
On 23/7/20 2:57 pm, Brunner, Clemens (<a href="mailto:clemens.brunner@uni-graz.at" target="_blank">clemens.brunner@uni-graz.at</a>) wrote:<br>
&gt;         External Email - Use Caution        <br>
&gt;<br>
&gt; Also note that the resample example<br>
(<a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.resample.html" rel="noreferrer" target="_blank">https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.resample.<br>
html</a>) shows upsampling, i.e. the data has a lower sampling rate than the<br>
resampled result. However, in the case of downsampling it is usually<br>
necessary to avoid aliasing of frequencies above the resampled Nyquist<br>
frequency. Therefore, the signal is typically low-pass filtered before the<br>
resampling step. As Eric mentioned, this anti-aliasing filter is what<br>
actually changes the signal values, but it is necessary to avoid aliasing<br>
artifacts.<br>
&gt;<br>
&gt; AFAIK, scipy.signal.resample doesn&#39;t include an anti-aliasing filter, but<br>
both scipy.signal.resample_poly as well as scipy.signal.decimate apply such<br>
a low-pass filter before resampling. That&#39;s also what MNE does.<br>
&gt;<br>
&gt; Clemens<br>
&gt;<br>
&gt;<br>
&gt;&gt; On 23.07.2020, at 14:40, Eric Larson &lt;<a href="mailto:larson.eric.d@gmail.com" target="_blank">larson.eric.d@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;         External Email - Use Caution        <br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; My understanding of downsampling is that it is an operation to decrease<br>
the sample rate of x by keeping the first sample and then every nth sample<br>
after the first.<br>
&gt;&gt;<br>
&gt;&gt; Resampling typically consists of two steps: low-pass filtering to avoid<br>
aliasing, then sample rate reduction (subselecting samples from the<br>
resulting signal). The low-passing actually changes the values, so the<br>
subselection-of-filtered-data step will not necessarily yield points that<br>
were &quot;on&quot; the original signal.<br>
&gt;&gt;  <br>
&gt;&gt; May I know whether this issue is due to the ringing artifacts or due to<br>
other problems?<br>
&gt;&gt;<br>
&gt;&gt; In this case it&#39;s likely due to the (implicit) low-pass filtering in <br>
&gt;&gt; the frequency-domain resampling of the signal. It looks pretty <br>
&gt;&gt; reasonable to me. If you want to play around with it a bit, you can<br>
&gt;&gt;<br>
&gt;&gt; 1. Call scipy.signal.resample directly on your data and see how closely<br>
it matches.<br>
&gt;&gt; 2. Pad your signal, call scipy.signal.resample, and remove the (now<br>
reduced-length) padding -- this is what MNE does internally.<br>
&gt;&gt; 3. Use scipy.signal.resample_poly directly on your data.<br>
&gt;&gt; 4. Manually low-pass filter and then directly subselect samples from the<br>
low-passed signal, which is what resample_poly does internally.<br>
&gt;&gt;<br>
&gt;&gt; Hopefully these all give similar results for your signal(s).<br>
&gt;&gt;<br>
&gt;&gt; Eric<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Mne_analysis mailing list<br>
&gt;&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt;&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Mne_analysis mailing list<br>
&gt; <a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
&gt; <a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
End of Mne_analysis Digest, Vol 150, Issue 40<br>
*********************************************<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Mne_analysis mailing list<br>
<a href="mailto:Mne_analysis@nmr.mgh.harvard.edu" target="_blank">Mne_analysis@nmr.mgh.harvard.edu</a><br>
<a href="https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis" rel="noreferrer" target="_blank">https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis</a><br>
<br>
End of Mne_analysis Digest, Vol 150, Issue 44<br>
*********************************************<br>
</blockquote></div></div>