Just a note that I ran into an error running Lecture2_reliability.ipynb in a conda env that used numpy version 1.16.1. Problem was fixed downgrading to version 1.15.1. Error occurred running cell 12 during the filtering in plt.fill_between. Stack trace below:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-12-50aa727add6e> in <module>()
6 plt.plot(neuron_i_data)
7 plt.fill_between(np.arange(192), minval, maxval,
----> 8 where=(np.arange(192) / 24) % 2, color='k', alpha=0.2)
9 plt.xticks(np.arange(0, 192, 24) + 12, unique_categories, rotation=30);
10 plt.ylabel('Neural Response')
~/anaconda/envs/py36/lib/python3.6/site-packages/matplotlib/pyplot.py in fill_between(x, y1, y2, where, interpolate, step, data, **kwargs)
2608 return gca().fill_between(
2609 x, y1, y2=y2, where=where, interpolate=interpolate, step=step,
-> 2610 **({"data": data} if data is not None else {}), **kwargs)
2611
2612
~/anaconda/envs/py36/lib/python3.6/site-packages/matplotlib/__init__.py in inner(ax, data, *args, **kwargs)
1808 "the Matplotlib list!)" % (label_namer, func.__name__),
1809 RuntimeWarning, stacklevel=2)
-> 1810 return func(ax, *args, **kwargs)
1811
1812 inner.__doc__ = _add_data_doc(inner.__doc__,
~/anaconda/envs/py36/lib/python3.6/site-packages/matplotlib/axes/_axes.py in fill_between(self, x, y1, y2, where, interpolate, step, **kwargs)
5057 where = True
5058 where = where & ~functools.reduce(np.logical_or,
-> 5059 map(np.ma.getmask, [x, y1, y2]))
5060
5061 x, y1, y2 = np.broadcast_arrays(np.atleast_1d(x), y1, y2)
TypeError: ufunc 'bitwise_and' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
Just a note that I ran into an error running
Lecture2_reliability.ipynb
in a conda env that used numpy version1.16.1
. Problem was fixed downgrading to version1.15.1
. Error occurred running cell 12 during the filtering inplt.fill_between
. Stack trace below: