Closed tlambert03 closed 3 years ago
in 1_image_filters ndi is used before it's defined ... around cell ~20
1_image_filters
noisy_change = ndi.correlate(noisy_signal, np.array([-1, 0, 1])) fig, ax = plt.subplots() ax.plot(noisy_signal, label='signal') ax.plot(noisy_change, linestyle='dashed', label='change') ax.legend(loc='upper left') ax.margins(0.1) --------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-20-0ea399531763> in <module> ----> 1 noisy_change = ndi.correlate(noisy_signal, np.array([-1, 0, 1])) 2 fig, ax = plt.subplots() 3 ax.plot(noisy_signal, label='signal') 4 ax.plot(noisy_change, linestyle='dashed', label='change') 5 ax.legend(loc='upper left') NameError: name 'ndi' is not defined
(note, it is later imported import scipy.ndimage as ndi ... but you must also have it in your auto-imports)
import scipy.ndimage as ndi
in
1_image_filters
ndi is used before it's defined ... around cell ~20(note, it is later imported
import scipy.ndimage as ndi
... but you must also have it in your auto-imports)