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.060414667634866304, 0.05911316418284676, 0.05779571711614954, 0.05646272194862792, 0.05511456490529486, 0.053751623718737325, 0.05237426839627364, 0.05098286196330241, 0.04957776118828273, 0.0481593172947977, 0.04672787666615715, 0.045283781449108884, 0.04382737046644082, 0.042358979654742376, 0.04087894289175201, 0.03938759266983198, 0.03788526081001263, 0.036372279192959905, 0.03484898051153893, 0.0333156990499931, ...], y_list = [0.2640478597334355, 0.26599276341432926, 0.2678659263818544, 0.2696670293392612, 0.2713957194190844, 0.2730516095203933, 0.27463427756261266, 0.27614326564940705, 0.27757807913615345, 0.2789381855945388, 0.28022301366783325, 0.2814319518901956, 0.28256434712001877, 0.28361950325137475, 0.2845966794550399, 0.2854950884111571, 0.28631389435739013, 0.28705221096402667, 0.28770909902164804, 0.288283563925251, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.060414667634866304, 0.05911316418284676, 0.05779571711614954, 0.05646272194862792, 0.05511456490529486, 0.053751623718737325, 0.05237426839627364, 0.05098286196330241, 0.04957776118828273, 0.0481593172947977, 0.04672787666615715, 0.045283781449108884, 0.04382737046644082, 0.042358979654742376, 0.04087894289175201, 0.03938759266983198, 0.03788526081001263, 0.036372279192959905, 0.03484898051153893, 0.0333156990499931, ...], y_list=[0.2640478597334355, 0.26599276341432926, 0.2678659263818544, 0.2696670293392612, 0.2713957194190844, 0.2730516095203933, 0.27463427756261266, 0.27614326564940705, 0.27757807913615345, 0.2789381855945388, 0.28022301366783325, 0.2814319518901956, 0.28256434712001877, 0.28361950325137475, 0.2845966794550399, 0.2854950884111571, 0.28631389435739013, 0.28705221096402667, 0.28770909902164804, 0.288283563925251, ...]) |
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.00276833, 0.03025236, 0.04318021, 0...3,
-0.03645597, -0.03267475, -0.02464082]), y = array([-0.01325123, -0.02543004, -0.02150031, -0...2,
0.08652647, 0.06504978, 0.03550741]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([ 0.00276833, 0.03025236, 0.04318021, 0...3,
-0.03645597, -0.03267475, -0.02464082]), array([-0.01325123, -0.02543004, -0.02150031, -0...2,
0.08652647, 0.06504978, 0.03550741])], 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.00276833, 0.03025236, 0.04318021, 0...3,
-0.03645597, -0.03267475, -0.02464082]), array([-0.01325123, -0.02543004, -0.02150031, -0...2,
0.08652647, 0.06504978, 0.03550741])], 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.00276833, 0.03025236, 0.04318021, ...
0.08652647, 0.06504978, -0.01325123]]), 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.04113913, 0.05963018, 0.074...9317,
0.85253588, 0.88237873, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=149, 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.00276833, 0.03025236, 0.04318021, ...
0.08652647, 0.06504978, -0.01325123]]), 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.04113913, 0.05963018, 0.074...9317,
0.85253588, 0.88237873, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 149, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |