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.026812688913467716, -0.027171983839508713, -0.027530959251370325, -0.027889611007142875, -0.02824793496035979, -0.028605926959651737, -0.02896358284840185, -0.02932089846439676, -0.0296778696394786, -0.03003449220570266, -0.03039076196248324, -0.03074667474125073, -0.03110222634009695, -0.031457412555930056, -0.03181222917761863, -0.03216667198564236, -0.03252073675173895, -0.03287441923854769, -0.03322771519925311, -0.033580620377229455, ...], y_list = [0.8794795537066632, 0.8795977817032832, 0.8797056665415772, 0.879803209486674, 0.8798904115968535, 0.8799672737236717, 0.8800337965120608, 0.8800899804004099, 0.8801358256206202, 0.8801713321986938, 0.8801964999519771, 0.8802113284946836, 0.8802158172323262, 0.8802099653644281, 0.88019377188389, 0.8801672355768889, 0.8801303550227523, 0.8800831285938138, 0.8800255544552404, 0.8799576305648427, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.026812688913467716, -0.027171983839508713, -0.027530959251370325, -0.027889611007142875, -0.02824793496035979, -0.028605926959651737, -0.02896358284840185, -0.02932089846439676, -0.0296778696394786, -0.03003449220570266, -0.03039076196248324, -0.03074667474125073, -0.03110222634009695, -0.031457412555930056, -0.03181222917761863, -0.03216667198564236, -0.03252073675173895, -0.03287441923854769, -0.03322771519925311, -0.033580620377229455, ...], y_list=[0.8794795537066632, 0.8795977817032832, 0.8797056665415772, 0.879803209486674, 0.8798904115968535, 0.8799672737236717, 0.8800337965120608, 0.8800899804004099, 0.8801358256206202, 0.8801713321986938, 0.8801964999519771, 0.8802113284946836, 0.8802158172323262, 0.8802099653644281, 0.88019377188389, 0.8801672355768889, 0.8801303550227523, 0.8800831285938138, 0.8800255544552404, 0.8799576305648427, ...]) |
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([-3.17209396e-02, -2.78404297e-02, -2.3465...06e-02, -3.83168403e-02,
-3.51900751e-02]), y = array([-5.70216672e-04, -1.03373196e-02, -1.9909...92e-02, 1.89061121e-02,
9.21076729e-03]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-3.17209396e-02, -2.78404297e-02, -2.3465...06e-02, -3.83168403e-02,
-3.51900751e-02]), array([-5.70216672e-04, -1.03373196e-02, -1.9909...92e-02, 1.89061121e-02,
9.21076729e-03])], 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([-3.17209396e-02, -2.78404297e-02, -2.3465...06e-02, -3.83168403e-02,
-3.51900751e-02]), array([-5.70216672e-04, -1.03373196e-02, -1.9909...92e-02, 1.89061121e-02,
9.21076729e-03])], 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.03172094, -0.02784043, -0.02346503, .... 0.02846233,
0.01890611, -0.00057022]]), 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.00547203, 0.01095191, 0.016...3072, 0.98410306, 0.98929365,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=707, 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.03172094, -0.02784043, -0.02346503, .... 0.02846233,
0.01890611, -0.00057022]]), 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.00547203, 0.01095191, 0.016...3072, 0.98410306, 0.98929365,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 707, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |