<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr"><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 id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hello,</p>
<p>I juste have a quick question regarding <span>mne.stats.permutation_cluster_test</span>.</p>
<p>When I give it two arrays X1 and X2 of shape (n subjects x n channels x n freq), I have the following error:
<span>ValueError: connectivity (len 20484) must be of the correct size, i.e. be equal to or evenly divide the number of tests (2580984).</span></p>
<p>The error disappear if I reshape X1 and X2 into shape <span>(n subjects x n freq x nchannels).</span></p>
<p><span>I was wondering why because I did not see anything about that in the documentation of&nbsp;<span>permutation_cluster_test</span>.
</span></p>
<p>Thanks in advance!</p>
<p>Kind regards,</p>
<p>Fleur<br>
</p>
</div>
</body>
</html>