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.12153285742869137, -0.11665103667875801, -0.11056063891800769, -0.10325214051522368, -0.0947308837382377, -0.08502109960892756, -0.07417048845580454, -0.06225516210151265, -0.04938456421443916, -0.03570574566260474, -0.021406113739798713, -0.006713573855097836, 0.008107040709257747, 0.022762065891310954, 0.03694176264741726, 0.050336851301815796, 0.06265687304736522, 0.07364770027537487, 0.08310549351632746, 0.09088515755402422, ...], y_list = [-0.08593450272783787, -0.11216619765979768, -0.13723255733544878, -0.16078317305606762, -0.18244081299027748, -0.2018041334128725, -0.21845315007793062, -0.23195836424982952, -0.24189441880887494, -0.24785891526397064, -0.2494964347439397, -0.24652679423203702, -0.23877517630781248, -0.22620026142624106, -0.2089153897421956, -0.18719774291980198, -0.1614820292016922, -0.1323380689436285, -0.10043516544848273, -0.06649895288806167, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.12153285742869137, -0.11665103667875801, -0.11056063891800769, -0.10325214051522368, -0.0947308837382377, -0.08502109960892756, -0.07417048845580454, -0.06225516210151265, -0.04938456421443916, -0.03570574566260474, -0.021406113739798713, -0.006713573855097836, 0.008107040709257747, 0.022762065891310954, 0.03694176264741726, 0.050336851301815796, 0.06265687304736522, 0.07364770027537487, 0.08310549351632746, 0.09088515755402422, ...], y_list=[-0.08593450272783787, -0.11216619765979768, -0.13723255733544878, -0.16078317305606762, -0.18244081299027748, -0.2018041334128725, -0.21845315007793062, -0.23195836424982952, -0.24189441880887494, -0.24785891526397064, -0.2494964347439397, -0.24652679423203702, -0.23877517630781248, -0.22620026142624106, -0.2089153897421956, -0.18719774291980198, -0.1614820292016922, -0.1323380689436285, -0.10043516544848273, -0.06649895288806167, ...]) |
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.12917794, -0.12776341, -0.12522709, -0...7, -0.12711478, -0.12880827,
-0.1295115 ]), y = array([-0.0033423 , -0.03123949, -0.05886031, -0...5, 0.07964732, 0.0523164 ,
0.02458467]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.12917794, -0.12776341, -0.12522709, -0...7, -0.12711478, -0.12880827,
-0.1295115 ]), array([-0.0033423 , -0.03123949, -0.05886031, -0...5, 0.07964732, 0.0523164 ,
0.02458467])], 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.12917794, -0.12776341, -0.12522709, -0...7, -0.12711478, -0.12880827,
-0.1295115 ]), array([-0.0033423 , -0.03123949, -0.05886031, -0...5, 0.07964732, 0.0523164 ,
0.02458467])], 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.12917794, -0.12776341, -0.12522709, -... 0.07964732, 0.0523164 ,
-0.0033423 ]]), 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.02055236, 0.04096051, 0.061...2781, 0.93889904, 0.95904695,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=67, 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.12917794, -0.12776341, -0.12522709, -... 0.07964732, 0.0523164 ,
-0.0033423 ]]), 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.02055236, 0.04096051, 0.061...2781, 0.93889904, 0.95904695,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 67, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |