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 = [-1.076361791914754, -1.0751363249195571, -1.0739013286293906, -1.0726568117460356, -1.0714027829054007, -1.0701392506778824, -1.0688662235687187, -1.0675837100183496, -1.066291718402775, -1.064990257033905, -1.0636793341599244, -1.062358957965639, -1.0610291365728353, -1.0596898780406323, -1.0583411903658368, -1.0569830814832974, -1.0556155592662573, -1.0542386315267116, -1.0528523060157564, -1.0514565901592194, ...], y_list = [0.9839813563135842, 0.9852941705626791, 0.9865982518169183, 0.987893586455661, 0.9891801607871604, 0.9904579610480186, 0.991726973402635, 0.9929871839426532, 0.9942385786864026, 0.9954811435783397, 0.9967148644884773, 0.9979397272118248, 0.9991557174678083, 1.000362820899701, 1.0015610230740393, 1.0027503094800432, 1.0039306655290265, 1.0051020765538066, 1.0062645278081115, 1.0074180046831795, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-1.076361791914754, -1.0751363249195571, -1.0739013286293906, -1.0726568117460356, -1.0714027829054007, -1.0701392506778824, -1.0688662235687187, -1.0675837100183496, -1.066291718402775, -1.064990257033905, -1.0636793341599244, -1.062358957965639, -1.0610291365728353, -1.0596898780406323, -1.0583411903658368, -1.0569830814832974, -1.0556155592662573, -1.0542386315267116, -1.0528523060157564, -1.0514565901592194, ...], y_list=[0.9839813563135842, 0.9852941705626791, 0.9865982518169183, 0.987893586455661, 0.9891801607871604, 0.9904579610480186, 0.991726973402635, 0.9929871839426532, 0.9942385786864026, 0.9954811435783397, 0.9967148644884773, 0.9979397272118248, 0.9991557174678083, 1.000362820899701, 1.0015610230740393, 1.0027503094800432, 1.0039306655290265, 1.0051020765538066, 1.0062645278081115, 1.0074180046831795, ...]) |
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.71483367, -0.71076394, -0.70666831, ..., -0.72688879,
-0.72289596, -0.71887763]), y = array([-0.00247434, -0.00612388, -0.00977321, ..., 0.00847431,
0.00482489, 0.0011753 ]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.71483367, -0.71076394, -0.70666831, ..., -0.72688879,
-0.72289596, -0.71887763]), array([-0.00247434, -0.00612388, -0.00977321, ..., 0.00847431,
0.00482489, 0.0011753 ])], 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.71483367, -0.71076394, -0.70666831, ..., -0.72688879,
-0.72289596, -0.71887763]), array([-0.00247434, -0.00612388, -0.00977321, ..., 0.00847431,
0.00482489, 0.0011753 ])], 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.71483367, -0.71076394, -0.70666831, .... 0.00847431,
0.00482489, -0.00247434]]), w=array([1., 1., 1., ..., 1., 1., 1.]), u=array([0. , 0.00123056, 0.00246544, ..., 0.99633405, 0.99755176,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=1039, 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.71483367, -0.71076394, -0.70666831, .... 0.00847431,
0.00482489, -0.00247434]]), w = array([1., 1., 1., ..., 1., 1., 1.]), u = array([0. , 0.00123056, 0.00246544, ..., 0.99633405, 0.99755176,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 1039, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |