<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>
----> 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>
1619 key_match = np.zeros(epochs.events.shape[0])<br>
1620 for key in eq:<br>
-> 1621 key_match = np.logical_or(key_match, epochs._key_match(key))<br>
1622 eq_inds.append(np.where(key_match)[0])<br>
1623 <br>
<br>
/usr/pubsw/packages/python/anaconda/lib/python2.7/site-packages/mne/epochs.pyc in _key_match(self, key)<br>
1323 def _key_match(self, key):<br>
1324 """Helper function for event dict use"""<br>
-> 1325 if key not in self.event_id:<br>
1326 raise KeyError('Event "%s" is not in Epochs.' % key)<br>
1327 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. Has anyone encountered this before and know what is going on?<br>
<br>
Cheers,<br>
Cody<br>
<br>
</div>
</body>
</html>