ldpgh

Results 5 comments of ldpgh

same issue on line 106 File "", line 1, in PlotExampleSpectrum(ntf, M=1, osr=osr, f0=f0) File ".......\lib\site-packages\deltasigma\_PlotExampleSpectrum.py", line 106, in PlotExampleSpectrum plt.plot(freq, dbp(spec_smoothed[:N/2 + 1]), 'b', linewidth=3) TypeError: slice indices must...

... and on line 87, 88 f1_bin = np.round(f1*N) f2_bin = np.round(f2*N) have been modified to f1_bin = int(np.round(f1*N)) f2_bin = int(np.round(f2*N))

... and voila got a pretty nice spectrum. And not to forget ... Thank you for all the effort you spent.

Python version ... >>> python Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)] : Type "help", "copyright", "credits" or "license" for more information. >>>

App-Test (1) cv2+Py3.7.4 ... ok ``` >>python Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information....