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.39770268962807775, -0.3930519555635769, -0.38837216042022443, -0.38366344411059383, -0.37892594879292074, -0.3741598189737075, -0.3693652016139085, -0.36454224623882814, -0.3596911050519237, -0.35481193305265424, -0.3499048881585785, -0.3449701313318685, -0.3400078263216175, -0.3350181412845475, -0.3300012467932857, -0.3249573173475279, -0.3198865311975209, -0.31478907050155125, -0.30966512148945313, -0.30451487463238075, ...], ya_list = [0.32724681756474305, 0.3261206625184652, 0.32497039485184936, 0.3237959271513542, 0.32259717091167417, 0.3213740365298361, 0.32012643329957924, 0.3188542694060449, 0.3175574519208067, 0.31623588679726905, 0.31488947886647095, 0.3135181318333269, 0.3121217481632497, 0.31070022949818077, 0.3092534760547547, 0.30778138700535634, 0.30628386038536937, 0.3047607930929292, 0.30321208088944107, 0.3016376184009184, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.39770268962807775, -0.3930519555635769, -0.38837216042022443, -0.38366344411059383, -0.37892594879292074, -0.3741598189737075, -0.3693652016139085, -0.36454224623882814, -0.3596911050519237, -0.35481193305265424, -0.3499048881585785, -0.3449701313318685, -0.3400078263216175, -0.3350181412845475, -0.3300012467932857, -0.3249573173475279, -0.3198865311975209, -0.31478907050155125, -0.30966512148945313, -0.30451487463238075, ...], y_list=[0.32724681756474305, 0.3261206625184652, 0.32497039485184936, 0.3237959271513542, 0.32259717091167417, 0.3213740365298361, 0.32012643329957924, 0.3188542694060449, 0.3175574519208067, 0.31623588679726905, 0.31488947886647095, 0.3135181318333269, 0.3121217481632497, 0.31070022949818077, 0.3092534760547547, 0.30778138700535634, 0.30628386038536937, 0.3047607930929292, 0.30321208088944107, 0.3016376184009184, ...]) |
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.3134655 , -0.3054525 , -0.29733969, -0...1, -0.33690792, -0.32919293,
-0.32137889]), y = array([-0.00089882, -0.00430211, -0.007704 , -0...6, 0.00930863, 0.00590759,
0.00250477]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.3134655 , -0.3054525 , -0.29733969, -0...1, -0.33690792, -0.32919293,
-0.32137889]), array([-0.00089882, -0.00430211, -0.007704 , -0...6, 0.00930863, 0.00590759,
0.00250477])], 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.3134655 , -0.3054525 , -0.29733969, -0...1, -0.33690792, -0.32919293,
-0.32137889]), array([-0.00089882, -0.00430211, -0.007704 , -0...6, 0.00930863, 0.00590759,
0.00250477])], 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.3134655 , -0.3054525 , -0.29733969, -... 0.00930863, 0.00590759,
-0.00089882]]), 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.00379576, 0.00763137, 0.011...1574, 0.98885204, 0.99252816,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=457, 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.3134655 , -0.3054525 , -0.29733969, -... 0.00930863, 0.00590759,
-0.00089882]]), 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.00379576, 0.00763137, 0.011...1574, 0.98885204, 0.99252816,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 457, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |