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.9859816718348328, -0.9906696222421792, -0.9951636644908141, -0.9994684410697453, -1.0035884407763087, -1.0075280047938477, -1.0112913325260908, -1.01488248719438, -1.018305401204452, -1.0215638812899361, -1.0246616134399533, -1.0276021676184315, -1.030389002282788, -1.0330254687096547, -1.0355148151352571, -1.037860190717967, -1.0400646493303942, -1.042131153188213, -1.0440625763227451, -1.0458617079040808, ...], ya_list = [0.09752802472113577, 0.08600984486837832, 0.07447481865149776, 0.0629256176669744, 0.051364773063992224, 0.03979468379862569, 0.02821762434870111, 0.016635751927476163, 0.005051113231420493, -0.0065343492451207285, -0.018118791298127667, -0.029700461476831794, -0.04127769589538724, -0.05284891336918523, -0.06441261085347715, -0.07596735916363602, -0.0875117989578694, -0.0990446369646399, -0.11056464243829307, -0.12207064382763884, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.9859816718348328, -0.9906696222421792, -0.9951636644908141, -0.9994684410697453, -1.0035884407763087, -1.0075280047938477, -1.0112913325260908, -1.01488248719438, -1.018305401204452, -1.0215638812899361, -1.0246616134399533, -1.0276021676184315, -1.030389002282788, -1.0330254687096547, -1.0355148151352571, -1.037860190717967, -1.0400646493303942, -1.042131153188213, -1.0440625763227451, -1.0458617079040808, ...], y_list=[0.09752802472113577, 0.08600984486837832, 0.07447481865149776, 0.0629256176669744, 0.051364773063992224, 0.03979468379862569, 0.02821762434870111, 0.016635751927476163, 0.005051113231420493, -0.0065343492451207285, -0.018118791298127667, -0.029700461476831794, -0.04127769589538724, -0.05284891336918523, -0.06441261085347715, -0.07596735916363602, -0.0875117989578694, -0.0990446369646399, -0.11056464243829307, -0.12207064382763884, ...]) |
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([-1.02156388e+00, -1.02466161e+00, -1.0276....01129133e+00, -1.01488249e+00, -1.01830540e+00]), y = array([-0.00653435, -0.01811879, -0.02970046, -0...03979468, 0.02821762, 0.01663575, 0.00505111]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-1.02156388e+00, -1.02466161e+00, -1.0276....01129133e+00, -1.01488249e+00, -1.01830540e+00]), array([-0.00653435, -0.01811879, -0.02970046, -0...03979468, 0.02821762, 0.01663575, 0.00505111])], 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([-1.02156388e+00, -1.02466161e+00, -1.0276....01129133e+00, -1.01488249e+00, -1.01830540e+00]), array([-0.00653435, -0.01811879, -0.02970046, -0...03979468, 0.02821762, 0.01663575, 0.00505111])], 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([[-1.02156388, -1.02466161, -1.02760217, .... 0.02821762,
0.01663575, -0.00653435]]), 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.00172195, 0.00343782, 0.005... 0.99304793, 0.994796 , 0.99653725, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=621, 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([[-1.02156388, -1.02466161, -1.02760217, .... 0.02821762,
0.01663575, -0.00653435]]), 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.00172195, 0.00343782, 0.005... 0.99304793, 0.994796 , 0.99653725, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 621, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |