A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
| /var/www/cgi-bin/ds_orbit.py in <module> |
956
|
957 # Smooth curve if necessary
|
=> 958 xa_smooth, ya_smooth = Q_get_smoothed_orbit(xa_list, ya_list)
|
959 plt.plot(xa_smooth, ya_smooth, label=f'Orbit of {wds}', color='#528B8B')
|
960
|
| xa_smooth undefined, ya_smooth undefined, Q_get_smoothed_orbit = <function Q_get_smoothed_orbit>, xa_list = [0.12322466189157617, 0.12404316129418452, 0.1248373911175716, 0.12560693746246882, 0.12635137298517082, 0.1270702562192569, 0.12776313088252467, 0.12842952502534546, 0.12906895033712346, 0.12968090121413148, 0.13026485385759523, 0.13082026529550886, 0.13134657233900213, 0.13184319046766393, 0.1323095126376624, 0.13274490800587607, 0.13314872056255167, 0.133520267664206, 0.13385883845761143, 0.13416369218470378, ...], ya_list = [0.23092318303718493, 0.23025210813969835, 0.22953598416113152, 0.22877447594599568, 0.2279672328960089, 0.2271138884421362, 0.22621405944744685, 0.22526734572418103, 0.22427332924745735, 0.2232315735650867, 0.22214162305554386, 0.2210030021584814, 0.21981521455462608, 0.21857774229134452, 0.21729004484982622, 0.21595155814945116, 0.21456169348449475, 0.2131198363878595, 0.21162534541601108, 0.21007755084872742, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.12322466189157617, 0.12404316129418452, 0.1248373911175716, 0.12560693746246882, 0.12635137298517082, 0.1270702562192569, 0.12776313088252467, 0.12842952502534546, 0.12906895033712346, 0.12968090121413148, 0.13026485385759523, 0.13082026529550886, 0.13134657233900213, 0.13184319046766393, 0.1323095126376624, 0.13274490800587607, 0.13314872056255167, 0.133520267664206, 0.13385883845761143, 0.13416369218470378, ...], y_list=[0.23092318303718493, 0.23025210813969835, 0.22953598416113152, 0.22877447594599568, 0.2279672328960089, 0.2271138884421362, 0.22621405944744685, 0.22526734572418103, 0.22427332924745735, 0.2232315735650867, 0.22214162305554386, 0.2210030021584814, 0.21981521455462608, 0.21857774229134452, 0.21729004484982622, 0.21595155814945116, 0.21456169348449475, 0.2131198363878595, 0.21162534541601108, 0.21007755084872742, ...]) |
272 # Nur wenn ausreichend Punkte vorhanden sind
|
273 if len(x) >= 4:
|
=> 274 tck, u = splprep([x, y], s=0.0, per=True) # per=True für geschlossene Kurve (Orbit)
|
275 u_fine = np.linspace(0, 1, 300) # Feinere Parameterwerte
|
276 return splev(u_fine, tck)
|
| tck undefined, u undefined, splprep = <function splprep>, x = array([-0.04876372, -0.04778366, -0.04621009, -0...8,
-0.04923054, -0.04940556, -0.04927346]), y = array([-0.0025062 , -0.00801775, -0.01342659, -0... ,
0.01401208, 0.00854788, 0.00303169]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.04876372, -0.04778366, -0.04621009, -0...8,
-0.04923054, -0.04940556, -0.04927346]), array([-0.0025062 , -0.00801775, -0.01342659, -0... ,
0.01401208, 0.00854788, 0.00303169])], w=None, u=None, ub=None, ue=None, k=3, task=0, s=0.0, t=None, full_output=0, nest=None, per=True, quiet=1) |
153 """
|
154
|
=> 155 res = _impl.splprep(x, w, u, ub, ue, k, task, s, t, full_output, nest, per,
|
=> 156 quiet)
|
157 return res
|
| res undefined, global _impl = <module 'scipy.interpolate._fitpack_impl' from '...ist-packages/scipy/interpolate/_fitpack_impl.py'>, _impl.splprep = <function splprep>, x = [array([-0.04876372, -0.04778366, -0.04621009, -0...8,
-0.04923054, -0.04940556, -0.04927346]), array([-0.0025062 , -0.00801775, -0.01342659, -0... ,
0.01401208, 0.00854788, 0.00303169])], w = None, u = None, ub = None, ue = None, k = 3, task = 0, s = 0.0, t = None, full_output = 0, nest = None, per = True, quiet = 1 |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_impl.py in splprep(x=array([[-0.04876372, -0.04778366, -0.04621009, -...
0.01401208, 0.00854788, -0.0025062 ]]), w=array([1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1... 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]), u=array([0. , 0.00809737, 0.01624548, 0.024...5026,
0.97607577, 0.98398364, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=209, per=True, quiet=1) |
172 wrk = _parcur_cache['wrk']
|
173 iwrk = _parcur_cache['iwrk']
|
=> 174 t, c, o = _fitpack._parcur(ravel(transpose(x)), w, u, ub, ue, k,
|
=> 175 task, ipar, s, t, nest, wrk, iwrk, per)
|
176 _parcur_cache['u'] = o['u']
|
| t = array([], dtype=float64), c undefined, o undefined, global _fitpack = <module 'scipy.interpolate._fitpack' from '/usr/...polate/_fitpack.cpython-312-x86_64-linux-gnu.so'>, _fitpack._parcur = <built-in function _parcur>, global ravel = <function ravel>, global transpose = <function transpose>, x = array([[-0.04876372, -0.04778366, -0.04621009, -...
0.01401208, 0.00854788, -0.0025062 ]]), w = array([1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1... 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]), u = array([0. , 0.00809737, 0.01624548, 0.024...5026,
0.97607577, 0.98398364, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 209, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |