<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-MY link="#0563C1" vlink="#954F72"><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 class=WordSection1><p style='margin:0cm;margin-bottom:.0001pt'>While trying with the mne downsampling module, I encountered some behavior that I am unable to explain myself.<o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'><o:p>&nbsp;</o:p></p><p style='margin:0cm;margin-bottom:.0001pt'>My understanding of downsampling is that it is an operation to decrease the sample rate of x by keeping the first sample and then every nth sample after the first.<o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'>The example provided from the resample method of scipy package clearly illustrated about this operation as depicted the picture which is accessible from the link (<a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.resample.html)" target="_blank"><span style='color:windowtext'>https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.resample.html)</span></a>&nbsp;or as extracted below<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><img border=0 width=538 height=241 style='width:5.6041in;height:2.5104in' id="Picture_x0020_3" src="cid:image001.jpg@01D6612F.CC3BB2F0" alt="A close up of a map&#10;&#10;Description automatically generated"><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p style='margin:0cm;margin-bottom:.0001pt'>In an enlarged view, it is evident that the original data points were resampled point by point.<o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'><o:p>&nbsp;</o:p></p><p style='margin:0cm;margin-bottom:.0001pt'><o:p>&nbsp;</o:p></p><p style='margin:0cm;margin-bottom:.0001pt'>However, using the mne example of downsampling which accessible via the link<o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'>:&nbsp;<a href="https://mne.tools/dev/auto_examples/preprocessing/plot_resample.html" target="_blank"><span style='color:windowtext'>https://mne.tools/dev/auto_examples/preprocessing/plot_resample.html</span></a><o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'>, I notice that the data points were not resampled point by point as illustrated visually below<o:p></o:p></p><p class=M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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><img border=0 width=547 height=245 style='width:5.6979in;height:2.552in' id="Picture_x0020_4" src="cid:image002.png@01D6612F.CC3BB2F0" alt="A screenshot of a cell phone&#10;&#10;Description automatically generated"><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p style='margin:0cm;margin-bottom:.0001pt'>This given that, mne resample is based on the resample method of scipy package as indicated from mne resample function as shown:<o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'><a href="https://github.com/mne-tools/mne-python/blob/607fb4613fb5a80dd225132a4a53fe43b8fde0fb/mne/filter.py#L1342" target="_blank"><span style='color:windowtext'>https://github.com/mne-tools/mne-python/blob/607fb4613fb5a80dd225132a4a53fe43b8fde0fb/mne/filter.py#L1342</span></a><o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'><o:p>&nbsp;</o:p></p><p style='margin:0cm;margin-bottom:.0001pt'><o:p>&nbsp;</o:p></p><p style='margin:0cm;margin-bottom:.0001pt'>May I know whether this issue is due to the ringing artifacts or due to other problems?<o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'><o:p>&nbsp;</o:p></p><p style='margin:0cm;margin-bottom:.0001pt'>Also, are there remedies to mitigate this problem.<o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'><o:p>&nbsp;</o:p></p><p style='margin:0cm;margin-bottom:.0001pt'><o:p>&nbsp;</o:p></p><p style='margin:0cm;margin-bottom:.0001pt'>Thanks for any insight. Appreciate it<o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'><o:p>&nbsp;</o:p></p><p style='margin:0cm;margin-bottom:.0001pt'><o:p>&nbsp;</o:p></p><p style='margin:0cm;margin-bottom:.0001pt'>Cheers<o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt'>Rodney<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>