Dear Spyder community, I'm experiencing a strange error: I have a script, that at some point calls a function from a module. This function contains a call to np.polyfit. I'm doing some very simple fitting there, similar to
import numpy as np parms = np.polyfit(np.arange(10), (np.arange(10)-1)*1.1, 1) only that my arrays have typically ~30-80k elements. Now the strange part: this works fine on my Notebook but throws "np.linalg.LinAlgError" on my PC if I run the main script in Spyder. If I run the main script from a command prompt it works fine on both systems, which got me the impression that this could be a Spyder issue. I also tried different versions of Python3 with the same result. My work-around at the moment is to catch the error in a try/except and do another call to polyfit in the except block. Upon second call it works fine! - both systems Windows 10 (1909), Python 3.8.3 x64 (also tested Python 3.7.6 x64), Spyder 4.1.3 Any thoughts? cheers Florian -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/34b704a9-89af-400e-a506-e46915c2fb48o%40googlegroups.com.
