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.48321136612934124, 0.48223129701217204, 0.4811719297544426, 0.4800354035908793, 0.47882376717199565, 0.4775389838795695, 0.4761829367526323, 0.47475743305812007, 0.47326420853690976, 0.47170493135288233, 0.4700812057699105, 0.4683945755792701, 0.46664652729781486, 0.46483849315532466, 0.4629718538877415, 0.46104794135144306, 0.4590680409723746, 0.45703339404257626, 0.45494519987558174, 0.4528046178311294, ...], ya_list = [-0.14237097317490885, -0.14347979780452944, -0.1445650295854848, -0.14562708039843655, -0.14666634610003593, -0.14768320736320079, -0.14867803046040284, -0.14965116799462658, -0.15060295958221623, -0.15153373249143143, -0.15244380224017567, -0.15333347315604717, -0.15420303890157586, -0.15505278296725764, -0.15588297913476487, -0.15669389191250946, -0.15748577694554677, -0.15825888140164246, -0.15901344433517034, -0.15974969703037664, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.48321136612934124, 0.48223129701217204, 0.4811719297544426, 0.4800354035908793, 0.47882376717199565, 0.4775389838795695, 0.4761829367526323, 0.47475743305812007, 0.47326420853690976, 0.47170493135288233, 0.4700812057699105, 0.4683945755792701, 0.46664652729781486, 0.46483849315532466, 0.4629718538877415, 0.46104794135144306, 0.4590680409723746, 0.45703339404257626, 0.45494519987558174, 0.4528046178311294, ...], y_list=[-0.14237097317490885, -0.14347979780452944, -0.1445650295854848, -0.14562708039843655, -0.14666634610003593, -0.14768320736320079, -0.14867803046040284, -0.14965116799462658, -0.15060295958221623, -0.15153373249143143, -0.15244380224017567, -0.15333347315604717, -0.15420303890157586, -0.15505278296725764, -0.15588297913476487, -0.15669389191250946, -0.15748577694554677, -0.15825888140164246, -0.15901344433517034, -0.15974969703037664, ...]) |
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([-2.57306344e-01, -2.64942446e-01, -2.7131...55e-01, -2.37089963e-01,
-2.48140732e-01]), y = array([-0.00116547, -0.00382243, -0.00646157, -0...6, 0.00675687, 0.00414882,
0.00149781]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-2.57306344e-01, -2.64942446e-01, -2.7131...55e-01, -2.37089963e-01,
-2.48140732e-01]), array([-0.00116547, -0.00382243, -0.00646157, -0...6, 0.00675687, 0.00414882,
0.00149781])], 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([-2.57306344e-01, -2.64942446e-01, -2.7131...55e-01, -2.37089963e-01,
-2.48140732e-01]), array([-0.00116547, -0.00382243, -0.00646157, -0...6, 0.00675687, 0.00414882,
0.00149781])], 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([[-2.57306344e-01, -2.64942446e-01, -2.713...e-03, 4.14882172e-03,
-1.16547042e-03]]), 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.00486132, 0.00900817, 0.012...7607, 0.97920835, 0.98743161,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=307, 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([[-2.57306344e-01, -2.64942446e-01, -2.713...e-03, 4.14882172e-03,
-1.16547042e-03]]), 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.00486132, 0.00900817, 0.012...7607, 0.97920835, 0.98743161,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 307, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |