The full process is here:
D:\ProgramData\Anaconda\lib\site-packages\numpy\core\fromnumeric.py:3372: RuntimeWarning: Mean of empty slice.
return _methods._mean(a, axis=axis, dtype=dtype,
D:\ProgramData\Anaconda\lib\site-packages\numpy\core_methods.py:162: RuntimeWarning: invalid value encountered in true_divide
ret = um.true_divide(
:85: RuntimeWarning: evoked object is empty (based on less than 1 epoch)
pain_evoked = pain_epochs.average()
:86: RuntimeWarning: evoked object is empty (based on less than 1 epoch)
noPain_evoked = noPain_epochs.average()
ValueError Traceback (most recent call last)
in
11 raw_list.append(file_path)
12 for file_path in raw_list:
—> 13 Preprocesing(file_path)
in Preprocesing(file_path)
85 pain_evoked = pain_epochs.average()
86 noPain_evoked = noPain_epochs.average()
—> 87 pain_evoked.plot()
88 noPain_evoked.plot()
89 plt.show(block=False)
D:\ProgramData\Anaconda\lib\site-packages\mne\evoked.py in plot(self, picks, exclude, unit, show, ylim, xlim, proj, hline, units, scalings, titles, axes, gfp, window_title, spatial_colors, zorder, selectable, noise_cov, time_unit, sphere, verbose)
387 spatial_colors=False, zorder=‘unsorted’, selectable=True,
388 noise_cov=None, time_unit=‘s’, sphere=None, verbose=None):
→ 389 return plot_evoked(
390 self, picks=picks, exclude=exclude, unit=unit, show=show,
391 ylim=ylim, proj=proj, xlim=xlim, hline=hline, units=units,
in plot_evoked(evoked, picks, exclude, unit, show, ylim, xlim, proj, hline, units, scalings, titles, axes, gfp, window_title, spatial_colors, zorder, selectable, noise_cov, time_unit, sphere, verbose)
D:\ProgramData\Anaconda\lib\site-packages\mne\viz\evoked.py in plot_evoked(evoked, picks, exclude, unit, show, ylim, xlim, proj, hline, units, scalings, titles, axes, gfp, window_title, spatial_colors, zorder, selectable, noise_cov, time_unit, sphere, verbose)
764 mne.viz.plot_evoked_white
765 “”"
→ 766 return _plot_evoked(
767 evoked=evoked, picks=picks, exclude=exclude, unit=unit, show=show,
768 ylim=ylim, proj=proj, xlim=xlim, hline=hline, units=units,
D:\ProgramData\Anaconda\lib\site-packages\mne\viz\evoked.py in _plot_evoked(evoked, picks, exclude, unit, show, ylim, proj, xlim, hline, units, scalings, titles, axes, plot_type, cmap, gfp, window_title, spatial_colors, selectable, zorder, noise_cov, colorbar, mask, mask_style, mask_cmap, mask_alpha, time_unit, show_names, group_by, sphere)
345
346 if plot_type == ‘butterfly’:
→ 347 _plot_lines(evoked.data, info, picks, fig, axes, spatial_colors, unit,
348 units, scalings, hline, gfp, types, zorder, xlim, ylim,
349 times, bad_ch_idx, titles, ch_types_used, selectable,
D:\ProgramData\Anaconda\lib\site-packages\mne\viz\evoked.py in _plot_lines(data, info, picks, fig, axes, spatial_colors, unit, units, scalings, hline, gfp, types, zorder, xlim, ylim, times, bad_ch_idx, titles, ch_types_used, selectable, psd, line_alpha, nave, time_unit, sphere)
436 # Set amplitude scaling
437 D = this_scaling * data[idx, :]
→ 438 _check_if_nan(D)
439 gfp_only = gfp == ‘only’
440 if not gfp_only:
D:\ProgramData\Anaconda\lib\site-packages\mne\utils\check.py in _check_if_nan(data, msg)
450 “”“Raise if any of the values are NaN.”“”
451 if not np.isfinite(data).all():
→ 452 raise ValueError(“Some of the values {} are NaN.”.format(msg))
453
454
ValueError: Some of the values to be plotted are NaN.