---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-12-72180c287de0> in <module>()
1 get_ipython().run_line_magic('matplotlib', '')
----> 2 clean_epochs_plot = face_epochs.plot(scalings='auto');
3 fig = plt.gcf()
4 fig.canvas.manager.window.activateWindow()
5 fig.canvas.manager.window.raise_()
~/anaconda3/envs/brainwaves/lib/python3.5/site-packages/mne/epochs.py in plot(self, picks, scalings, n_epochs, n_channels, title, events, event_colors, show, block, decim, noise_cov)
944 title=title, events=events,
945 event_colors=event_colors, show=show, block=block,
--> 946 decim=decim, noise_cov=noise_cov)
947
948 @copy_function_doc_to_method_doc(plot_epochs_psd)
~/anaconda3/envs/brainwaves/lib/python3.5/site-packages/mne/viz/epochs.py in plot_epochs(epochs, picks, scalings, n_epochs, n_channels, title, events, event_colors, show, block, decim, noise_cov)
798 """
799 epochs.drop_bad()
--> 800 scalings = _compute_scalings(scalings, epochs)
801 scalings = _handle_default('scalings_plot_raw', scalings)
802 decim, data_picks = _handle_decim(epochs.info.copy(), decim, None)
~/anaconda3/envs/brainwaves/lib/python3.5/site-packages/mne/viz/utils.py in _compute_scalings(scalings, inst)
1624 raise ValueError("Sensor {0} doesn't exist in data".format(key))
1625 this_data = data[ch_types[key]]
-> 1626 scale_factor = np.percentile(this_data.ravel(), [0.5, 99.5])
1627 scale_factor = np.max(np.abs(scale_factor))
1628 scalings[key] = scale_factor
~/anaconda3/envs/brainwaves/lib/python3.5/site-packages/numpy/lib/function_base.py in percentile(a, q, axis, out, overwrite_input, interpolation, keepdims)
4289 r, k = _ureduce(a, func=_percentile, q=q, axis=axis, out=out,
4290 overwrite_input=overwrite_input,
-> 4291 interpolation=interpolation)
4292 if keepdims:
4293 return r.reshape(q.shape + k)
~/anaconda3/envs/brainwaves/lib/python3.5/site-packages/numpy/lib/function_base.py in _ureduce(a, func, **kwargs)
4031 keepdim = (1,) * a.ndim
4032
-> 4033 r = func(a, **kwargs)
4034 return r, keepdim
4035
~/anaconda3/envs/brainwaves/lib/python3.5/site-packages/numpy/lib/function_base.py in _percentile(a, q, axis, out, overwrite_input, interpolation, keepdims)
4403 n = np.isnan(ap[-1:, ...])
4404
-> 4405 x1 = take(ap, indices_below, axis=axis) * weights_below
4406 x2 = take(ap, indices_above, axis=axis) * weights_above
4407
~/anaconda3/envs/brainwaves/lib/python3.5/site-packages/numpy/core/fromnumeric.py in take(a, indices, axis, out, mode)
157 [5, 7]])
158 """
--> 159 return _wrapfunc(a, 'take', indices, axis=axis, out=out, mode=mode)
160
161
~/anaconda3/envs/brainwaves/lib/python3.5/site-packages/numpy/core/fromnumeric.py in _wrapfunc(obj, method, *args, **kwds)
50 def _wrapfunc(obj, method, *args, **kwds):
51 try:
---> 52 return getattr(obj, method)(*args, **kwds)
53
54 # An AttributeError occurs if the object does not have
IndexError: cannot do a non-empty take from an empty axes.