python-deltasigma icon indicating copy to clipboard operation
python-deltasigma copied to clipboard

some changes for python 3.10 as diff

Open olisnr opened this issue 1 year ago • 5 comments

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)?

olisnr avatar Jun 02 '24 22:06 olisnr

i got a part running on python 3.10 here is my diff: ds.diff.zip

olisnr avatar Jun 05 '24 21:06 olisnr

I just faced the same condition with you and couldn't figure it out...

DanielGlouseer avatar Oct 10 '24 07:10 DanielGlouseer

@DanielGlouseer does the diff work for You?

olisnr avatar Oct 10 '24 13:10 olisnr

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.

DanielGlouseer avatar Oct 12 '24 01:10 DanielGlouseer

can You make a diff of all Your work?

olisnr avatar Oct 22 '24 13:10 olisnr