<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 style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<span style="font-size: 12pt;" class="elementToProof">Dear MNE users,</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<span style="font-size: 12pt;" class="elementToProof"><br>
</span></div>
<div class="ContentPasted6 elementToProof">I am trying to explore the relationship between my behavioral outcome and sigma power at all time points. I attempted to conduct a permutation cluster test using Pearson correlation as my statistic, but I encountered
 an error: TypeError: No loop matching the specified signature and casting was found for ufunc add.</div>
<div><br class="ContentPasted6">
</div>
<div class="ContentPasted6">If anyone has encountered this issue and knows how to resolve it, I would greatly appreciate your help.</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br class="ContentPasted6">
</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Here is the code and error in detail:</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof ContentPasted8" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 12pt; color: rgb(66, 66, 66); background-color: rgb(255, 255, 255);">def statistic(x, y):</span><br class="ContentPasted8">
<span style="font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 12pt; color: rgb(66, 66, 66); background-color: rgb(255, 255, 255);">&nbsp; &nbsp; return pearsonr(x,
 y).statistic</span><br>
</div>
<div class="elementToProof ContentPasted8" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<div class="ContentPasted7 elementToProof"><span style="font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 12pt; color: rgb(66, 66, 66); background-color: rgb(255, 255, 255);">c_obs,
 clusters_c, cluster_p_values, H0 = \</span></div>
<div class="ContentPasted7"><span style="font-family: &quot;Segoe UI&quot;, &quot;Segoe UI Web (West European)&quot;, &quot;Segoe UI&quot;, -apple-system, BlinkMacSystemFont, Roboto, &quot;Helvetica Neue&quot;, sans-serif; font-size: 12pt; color: rgb(66, 66, 66); background-color: rgb(255, 255, 255);">&nbsp;
 &nbsp; permutation_cluster_test([sigma,behavioral],tail=0,threshold=0.05,stat_fun=statistic,n_jobs=-1,n_permutations=1000)#competition vs noncompetition</span></div>
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
error:</div>
<div class="elementToProof" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<img style="max-width:100%" class="ContentPasted9 w-907 h-733" size="182451" contenttype="image/png" data-outlook-trace="F:1|T:1" src="cid:c4c57b94-82d8-45b9-b310-e92df4421778"></div>
<div class="ContentPasted6">Thank you,</div>
Tao
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted1 ContentPasted2 ContentPasted3">
<div class="ContentPasted3 elementToProof ContentPasted5"></div>
<div class="ContentPasted3 elementToProof"><br>
</div>
<div class="ContentPasted3 elementToProof"><br>
</div>
</div>
<div class="elementToProof">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div id="Signature">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="margin:0px;text-align:start;background-color:rgb(255, 255, 255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica, Arial, sans-serif;margin:0px" class="ContentPasted0"><br>
</span></font></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="margin:0px;text-align:start;background-color:rgb(255, 255, 255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica, Arial, sans-serif;margin:0px" class="ContentPasted0"><br>
</span></font></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="margin:0px;text-align:start;background-color:rgb(255, 255, 255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica, Arial, sans-serif;margin:0px" class="ContentPasted0"><br>
</span></font></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="margin:0px;text-align:start;background-color:rgb(255, 255, 255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica, Arial, sans-serif;margin:0px" class="ContentPasted0"><br>
</span></font></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="margin:0px;text-align:start;background-color:rgb(255, 255, 255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica, Arial, sans-serif;margin:0px" class="ContentPasted0"><br>
</span></font></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="margin:0px;text-align:start;background-color:rgb(255, 255, 255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica, Arial, sans-serif;margin:0px" class="ContentPasted0"><br>
</span></font></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="margin:0px;text-align:start;background-color:rgb(255, 255, 255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica, Arial, sans-serif;margin:0px" class="ContentPasted0"><br>
</span></font></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="margin:0px;text-align:start;background-color:rgb(255, 255, 255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica, Arial, sans-serif;margin:0px" class="ContentPasted0"><br>
</span></font></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="margin:0px;text-align:start;background-color:rgb(255, 255, 255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica, Arial, sans-serif;margin:0px" class="ContentPasted0"><br>
</span></font></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="margin:0px;text-align:start;background-color:rgb(255, 255, 255)"><font face="Arial, Helvetica, sans-serif"><span style="font-size:12pt;font-family:Helvetica, Arial, sans-serif;margin:0px" class="ContentPasted0"><br>
</span></font></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</div>
</div>
</body>
</html>