python-deltasigma
python-deltasigma copied to clipboard
some changes for python 3.10 as diff
hi when i try to use this interesting module with python 3.10 there popup many error messages
the first is: `Exception has occurred: AttributeError module 'numpy' has no attribute 'float'.
its possible to change the float to float64, but then the next error comes. the function scipy.signal.step2() was replaced with step(). after import collections it seems to need a collections.Iterable = collections.abc.Iterable. the function gcd() is now in the module math instead of fractions and there are more problems i didnt found out by now.
thus my question: is deltasigma already ported to a more modern python version? and if Yes, where to find it? or should i try to fix all errors my self and somehow upload it (if im lucky)?
i got a part running on python 3.10 here is my diff: ds.diff.zip
I just faced the same condition with you and couldn't figure it out...
@DanielGlouseer does the diff work for You?
I encountered another error. First is: 'Exception has occurred: AttributeError module 'numpy' has no attribute 'float' . Then I change to float64 and it seems ok. Also I ignore anywhere mentioned ''plt.ishold''. The next error I faced is ''Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure''. I tried use code as matplotlib.use('TkAgg'), now I could get the correct picture.
can You make a diff of all Your work?