tag:blogger.com,1999:blog-1810575588840367475.post7323719275548854601..comments2023-10-08T22:11:44.506+01:00Comments on Helloworld922's Blog: Experimenting with Diodes and Non-Linear Curve FittingUnknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-1810575588840367475.post-83017380142791987822017-09-17T03:08:42.918+01:002017-09-17T03:08:42.918+01:00I tried with Python 3 and Python 2.7 and both of t...I tried with Python 3 and Python 2.7 and both of them work. I have SciPy 0.18.1, but I think at the time I wrote this it was SciPy 0.15.0?helloworld922https://www.blogger.com/profile/07702737927459340264noreply@blogger.comtag:blogger.com,1999:blog-1810575588840367475.post-14406684723453979722017-09-16T13:00:51.961+01:002017-09-16T13:00:51.961+01:00Which version of Python, numpy, and scipy are you ...Which version of Python, numpy, and scipy are you using? The code you've posted errors with TypeError: 'numpy.float32' object cannot be interpreted as an integer (traceback is pointing to the line "return I*Rs+log(I/Is+1)*n*kb*T-V" in diode_res(), but seems to actually be something wrong with leastsq(), since I can call diode_res() just fine.Anonymoushttps://www.blogger.com/profile/13976601507051871643noreply@blogger.com