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.20759896291622282, -0.20799150445047612, -0.20836099304748887, -0.20870730620007605, -0.20903031896358704, -0.20932990390128545, -0.2096059310283569, -0.20985826775449049, -0.21008677882497348, -0.21029132626024322, -0.21047176929383365, -0.2106279643086548, -0.2107597647715412, -0.21086702116600203, -0.21094958092310587, -0.2110072883504284, -0.21103998455899217, -0.21104750738812209, -0.21102969132814028, -0.21098636744082044, ...], y_list = [-0.11680139247913074, -0.11910620736906967, -0.1213978208768479, -0.12367593148541889, -0.12594023458499276, -0.12819042232439762, -0.13042618345919665, -0.13264720319637271, -0.1348531630353703, -0.13704374060529398, -0.13921860949804277, -0.1413774390971533, -0.14351989440212404, -0.14564563584796747, -0.1477543191197446, -0.14984559496180794, -0.15191910898148378, -0.15397450144689814, -0.1560114070786465, -0.15802945483499012, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.20759896291622282, -0.20799150445047612, -0.20836099304748887, -0.20870730620007605, -0.20903031896358704, -0.20932990390128545, -0.2096059310283569, -0.20985826775449049, -0.21008677882497348, -0.21029132626024322, -0.21047176929383365, -0.2106279643086548, -0.2107597647715412, -0.21086702116600203, -0.21094958092310587, -0.2110072883504284, -0.21103998455899217, -0.21104750738812209, -0.21102969132814028, -0.21098636744082044, ...], y_list=[-0.11680139247913074, -0.11910620736906967, -0.1213978208768479, -0.12367593148541889, -0.12594023458499276, -0.12819042232439762, -0.13042618345919665, -0.13264720319637271, -0.1348531630353703, -0.13704374060529398, -0.13921860949804277, -0.1413774390971533, -0.14351989440212404, -0.14564563584796747, -0.1477543191197446, -0.14984559496180794, -0.15191910898148378, -0.15397450144689814, -0.1560114070786465, -0.15802945483499012, ...]) |
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.16632182, -0.16767499, -0.16900886, -0...6, -0.16214707, -0.1635578 ,
-0.1649494 ]), y = array([-0.00134735, -0.00395945, -0.00657111, -0... , 0.0064887 , 0.00387704,
0.00126492]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.16632182, -0.16767499, -0.16900886, -0...6, -0.16214707, -0.1635578 ,
-0.1649494 ]), array([-0.00134735, -0.00395945, -0.00657111, -0... , 0.0064887 , 0.00387704,
0.00126492])], 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.16632182, -0.16767499, -0.16900886, -0...6, -0.16214707, -0.1635578 ,
-0.1649494 ]), array([-0.00134735, -0.00395945, -0.00657111, -0... , 0.0064887 , 0.00387704,
0.00126492])], 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.16632182, -0.16767499, -0.16900886, -... 0.0064887 , 0.00387704,
-0.00134735]]), 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.00282398, 0.00563909, 0.008...1925, 0.99147679, 0.99432623,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=317, 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.16632182, -0.16767499, -0.16900886, -... 0.0064887 , 0.00387704,
-0.00134735]]), 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.00282398, 0.00563909, 0.008...1925, 0.99147679, 0.99432623,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 317, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |