Code: Select all
$ python simu.py
/usr/share/guitarix/tools/ampsim/DK/quik.py:408: FutureWarning: Possible nested set at position 8
KEYVALSEP = re.compile(r'[ \t]*:[[ \t]*(.*)$', re.S)
0: Choke
1: Diode_clipper
2: Diode
3: Fuzz
4: InvOpAmp
5: LinOpAmp
6: Pentode2
7: Pentode
8: Pot
9: Preamp
10: PushPullTransformer
11: Resonator
12: Tonestack
13: Transformer_GC
14: Transistor
15: Triode1
16: Triode2
17: WahWah_ss
18: WahWah
Please select: 0
Traceback (most recent call last):
File "/usr/share/guitarix/tools/ampsim/DK/simu.py", line 1452, in <module>
main()
File "/usr/share/guitarix/tools/ampsim/DK/simu.py", line 1448, in main
plot_output(g, tests, args)
File "/usr/share/guitarix/tools/ampsim/DK/simu.py", line 1252, in plot_output
plot_one(g[t](), args, t)
File "/usr/share/guitarix/tools/ampsim/DK/simu.py", line 1219, in plot_one
p = dk_simulator.get_executor(
File "/usr/share/guitarix/tools/ampsim/DK/dk_simulator.py", line 1831, in get_executor
sim = SimulatePy(EquationSystem(parser), solver)
File "/usr/share/guitarix/tools/ampsim/DK/dk_simulator.py", line 908, in __init__
self.calc_dc(parser.op, method=dc_method)
File "/usr/share/guitarix/tools/ampsim/DK/dk_simulator.py", line 1055, in calc_dc
self.v0 = self.solve_using_homotopy(func, self.v0).x
File "/usr/share/guitarix/tools/ampsim/DK/dk_simulator.py", line 999, in solve_using_homotopy
res = self.solve(func, v0, args=(points[1],), method=method, options=options)
File "/usr/share/guitarix/tools/ampsim/DK/dk_simulator.py", line 985, in solve
res = opt.root(func, v0, args=args, method=method, options=options)
File "/home/dom/.virtualenvs/guitarix/lib/python3.9/site-packages/scipy/optimize/_root.py", line 236, in root
sol = _root_hybr(fun, x0, args=args, jac=jac, **options)
File "/home/dom/.virtualenvs/guitarix/lib/python3.9/site-packages/scipy/optimize/_minpack_py.py", line 232, in _root_hybr
shape, dtype = _check_func('fsolve', 'func', func, x0, args, n, (n,))
File "/home/dom/.virtualenvs/guitarix/lib/python3.9/site-packages/scipy/optimize/_minpack_py.py", line 29, in _check_func
res = atleast_1d(thefunc(*((x0[:numinputs],) + args)))
File "/usr/share/guitarix/tools/ampsim/DK/dk_simulator.py", line 1054, in func
return (p + Hc1 * fact + KK * self.calc_i(v) - ml.matrix(self.eq.CZ * v).T).A1
File "/home/dom/.virtualenvs/guitarix/lib/python3.9/site-packages/numpy/matrixlib/defmatrix.py", line 221, in __mul__
return N.dot(self, asmatrix(other))
File "/home/dom/.virtualenvs/guitarix/lib/python3.9/site-packages/numpy/matrixlib/defmatrix.py", line 70, in asmatrix
return matrix(data, dtype=dtype, copy=False)
File "/home/dom/.virtualenvs/guitarix/lib/python3.9/site-packages/numpy/matrixlib/defmatrix.py", line 118, in __new__
warnings.warn('the matrix subclass is not the recommended way to '
PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
In fact they removed these functions. I took an incomplete look into the numpy's release note. They say they will keep the compatibility for existing code with the 2.0 series, but that's not true, it issue the same traceback.