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> |
891
|
892 # Smooth curve if necessary
|
=> 893 x_smooth, y_smooth = Q_get_smoothed_orbit(x_list, y_list)
|
894 plt.plot(x_smooth, y_smooth, label=f'Orbit of {wds}', color='#528B8B')
|
895
|
| x_smooth undefined, y_smooth undefined, Q_get_smoothed_orbit = <function Q_get_smoothed_orbit>, x_list = [0.001656687571036988, 0.021376253890324617, 0.040562510175125466, 0.05885742696415786, 0.07598367988999774, 0.09170680720340646, 0.10581101819490653, 0.11808184629719629, 0.12829179368377594, 0.136186417343996, 0.14146874080392455, 0.1437797363321245, 0.14267199541834075, 0.13757264784212417, 0.1277306797181608, 0.11214657583809227, 0.08950718348092615, 0.058289399433344616, 0.017874485945908482, -0.026665549552228097, ...], y_list = [0.06565034278470407, 0.06831904298886428, 0.06924139259937491, 0.06862762574749982, 0.06664461182030472, 0.06342776196730633, 0.05908985217724754, 0.05372787352802399, 0.0474288180611079, 0.040275219419333076, 0.03235136029104595, 0.02375143521549685, 0.014591853829517486, 0.005031868988255522, -0.00468875133488415, -0.014175569491884686, -0.022723564648430342, -0.028978657613210192, -0.03030006230325891, -0.022700887167218783, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.001656687571036988, 0.021376253890324617, 0.040562510175125466, 0.05885742696415786, 0.07598367988999774, 0.09170680720340646, 0.10581101819490653, 0.11808184629719629, 0.12829179368377594, 0.136186417343996, 0.14146874080392455, 0.1437797363321245, 0.14267199541834075, 0.13757264784212417, 0.1277306797181608, 0.11214657583809227, 0.08950718348092615, 0.058289399433344616, 0.017874485945908482, -0.026665549552228097, ...], y_list=[0.06565034278470407, 0.06831904298886428, 0.06924139259937491, 0.06862762574749982, 0.06664461182030472, 0.06342776196730633, 0.05908985217724754, 0.05372787352802399, 0.0474288180611079, 0.040275219419333076, 0.03235136029104595, 0.02375143521549685, 0.014591853829517486, 0.005031868988255522, -0.00468875133488415, -0.014175569491884686, -0.022723564648430342, -0.028978657613210192, -0.03030006230325891, -0.022700887167218783, ...]) |
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.05957671, -0.02666555, 0.01787449, 0...8, -0.05410426,
-0.06683474, -0.07106944]), y = array([-0.00567064, -0.02270089, -0.03030006, -0...7, 0.04404744,
0.03083665, 0.01392362]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.05957671, -0.02666555, 0.01787449, 0...8, -0.05410426,
-0.06683474, -0.07106944]), array([-0.00567064, -0.02270089, -0.03030006, -0...7, 0.04404744,
0.03083665, 0.01392362])], 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.05957671, -0.02666555, 0.01787449, 0...8, -0.05410426,
-0.06683474, -0.07106944]), array([-0.00567064, -0.02270089, -0.03030006, -0...7, 0.04404744,
0.03083665, 0.01392362])], 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.05957671, -0.02666555, 0.01787449, ... 0.04404744,
0.03083665, -0.00567064]]), w=array([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.07315006, 0.16234357, 0.242...0392, 0.89030721,
0.92652338, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=33, 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.05957671, -0.02666555, 0.01787449, ... 0.04404744,
0.03083665, -0.00567064]]), w = array([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.07315006, 0.16234357, 0.242...0392, 0.89030721,
0.92652338, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 33, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |