<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
<br>
Whenever I try to use the epochs.equalize_event_counts, I get this same error:<br>
<br>
<br>
<br>
###################<br>
----&gt; 1 epochs.equalize_event_counts(epochs1,epochs2)<br>
<br>
/usr/pubsw/packages/python/anaconda/lib/python2.7/site-packages/mne/epochs.pyc in equalize_event_counts(self, event_ids, method, copy)<br>
&nbsp;&nbsp; 1619&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; key_match = np.zeros(epochs.events.shape[0])<br>
&nbsp;&nbsp; 1620&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for key in eq:<br>
-&gt; 1621&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; key_match = np.logical_or(key_match, epochs._key_match(key))<br>
&nbsp;&nbsp; 1622&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eq_inds.append(np.where(key_match)[0])<br>
&nbsp;&nbsp; 1623 <br>
<br>
/usr/pubsw/packages/python/anaconda/lib/python2.7/site-packages/mne/epochs.pyc in _key_match(self, key)<br>
&nbsp;&nbsp; 1323&nbsp;&nbsp;&nbsp;&nbsp; def _key_match(self, key):<br>
&nbsp;&nbsp; 1324&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot;Helper function for event dict use&quot;&quot;&quot;<br>
-&gt; 1325&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if key not in self.event_id:<br>
&nbsp;&nbsp; 1326&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; raise KeyError('Event &quot;%s&quot; is not in Epochs.' % key)<br>
&nbsp;&nbsp; 1327&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return self.events[:, 2] == self.event_id[key]<br>
<br>
TypeError: unhashable type: 'numpy.ndarray'<br>
<br>
####################<br>
<br>
<br>
This happens on my data, and the sample data, and no matter how I define my event ids (dict or integer), so it doesn't really seem data dependent.&nbsp; Has anyone encountered this before and know what is going on?<br>
<br>
Cheers,<br>
Cody<br>
<br>
</div>
</body>
</html>