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.11781056973826268, 0.1147636098940287, 0.1072617610015974, 0.09560594949738684, 0.08025727482553555, 0.0618172718085806, 0.04100302222559539, 0.018618338690084876, -0.004477689114742592, -0.027403503078045573, -0.049288021295847737, -0.06930260066373228, -0.08669101881674741, -0.1007965997738161, -0.11108572504700583, -0.11716707770750363, -0.1188060640418693, -0.11593395113386051, -0.10865135402557317, -0.09722581994280968, ...], ya_list = [0.0460832933368023, 0.07019223767080086, 0.09157683247618176, 0.10941535687322353, 0.12302817783083221, 0.13190292999525347, 0.1357125314121025, 0.13432560937356852, 0.12780926758150812, 0.11642443318447676, 0.10061426889699683, 0.08098631999410026, 0.05828919499054728, 0.03338466427666165, 0.0072161159374889575, -0.019225651640382747, -0.044938284173883083, -0.0689443233470017, -0.09032715662993934, -0.10826532771130608, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.11781056973826268, 0.1147636098940287, 0.1072617610015974, 0.09560594949738684, 0.08025727482553555, 0.0618172718085806, 0.04100302222559539, 0.018618338690084876, -0.004477689114742592, -0.027403503078045573, -0.049288021295847737, -0.06930260066373228, -0.08669101881674741, -0.1007965997738161, -0.11108572504700583, -0.11716707770750363, -0.1188060640418693, -0.11593395113386051, -0.10865135402557317, -0.09722581994280968, ...], y_list=[0.0460832933368023, 0.07019223767080086, 0.09157683247618176, 0.10941535687322353, 0.12302817783083221, 0.13190292999525347, 0.1357125314121025, 0.13432560937356852, 0.12780926758150812, 0.11642443318447676, 0.10061426889699683, 0.08098631999410026, 0.05828919499054728, 0.03338466427666165, 0.0072161159374889575, -0.019225651640382747, -0.044938284173883083, -0.0689443233470017, -0.09032715662993934, -0.10826532771130608, ...]) |
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.11716708, -0.11880606, -0.11593395, -0... ,
-0.08669102, -0.1007966 , -0.11108573]), y = array([-0.01922565, -0.04493828, -0.06894432, -0...2,
0.05828919, 0.03338466, 0.00721612]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.11716708, -0.11880606, -0.11593395, -0... ,
-0.08669102, -0.1007966 , -0.11108573]), array([-0.01922565, -0.04493828, -0.06894432, -0...2,
0.05828919, 0.03338466, 0.00721612])], 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.11716708, -0.11880606, -0.11593395, -0... ,
-0.08669102, -0.1007966 , -0.11108573]), array([-0.01922565, -0.04493828, -0.06894432, -0...2,
0.05828919, 0.03338466, 0.00721612])], 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.11716708, -0.11880606, -0.11593395, -...
0.05828919, 0.03338466, -0.01922565]]), 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.03250076, 0.0629989 , 0.091...2466,
0.89439206, 0.93049664, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=39, 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.11716708, -0.11880606, -0.11593395, -...
0.05828919, 0.03338466, -0.01922565]]), 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.03250076, 0.0629989 , 0.091...2466,
0.89439206, 0.93049664, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 39, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |