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.1445312420681908, 0.15236911282834897, 0.1601855907700236, 0.1679797996672281, 0.17575088163042749, 0.18349799643757356, 0.19122032088881172, 0.19891704818387945, 0.20658738732127196, 0.21423056251825914, 0.2218458126509195, 0.2294323907133545, 0.2369895632952946, 0.24451661007735817, 0.25201282334322533, 0.25947750750804616, 0.26690997866241645, 0.274309564131275, 0.2816756020471525, 0.2890074409371305, ...], y_list = [-0.419980491738982, -0.4211303401131233, -0.4222210564528078, -0.4232530710696176, -0.4242268094110701, -0.4251426920970677, -0.4260011349592791, -0.42680254908317333, -0.42754734085245455, -0.42823591199566263, -0.4288686596347213, -0.42944597633523485, -0.4299682501583507, -0.4304358647140126, -0.4308491992154541, -0.4312086285347839, -0.43151452325953144, -0.4317672497500329, -0.431967170197543, -0.43211464268297206, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.1445312420681908, 0.15236911282834897, 0.1601855907700236, 0.1679797996672281, 0.17575088163042749, 0.18349799643757356, 0.19122032088881172, 0.19891704818387945, 0.20658738732127196, 0.21423056251825914, 0.2218458126509195, 0.2294323907133545, 0.2369895632952946, 0.24451661007735817, 0.25201282334322533, 0.25947750750804616, 0.26690997866241645, 0.274309564131275, 0.2816756020471525, 0.2890074409371305, ...], y_list=[-0.419980491738982, -0.4211303401131233, -0.4222210564528078, -0.4232530710696176, -0.4242268094110701, -0.4251426920970677, -0.4260011349592791, -0.42680254908317333, -0.42754734085245455, -0.42823591199566263, -0.4288686596347213, -0.42944597633523485, -0.4299682501583507, -0.4304358647140126, -0.4308491992154541, -0.4312086285347839, -0.43151452325953144, -0.4317672497500329, -0.431967170197543, -0.43211464268297206, ...]) |
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([-4.06408136e-01, -4.07855724e-01, -4.0892....99721876e-01, -4.02349725e-01, -4.04575709e-01]), y = array([-0.00375116, -0.01145421, -0.01914673, -0...02702024, 0.0193491 , 0.01165809, 0.00395541]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-4.06408136e-01, -4.07855724e-01, -4.0892....99721876e-01, -4.02349725e-01, -4.04575709e-01]), array([-0.00375116, -0.01145421, -0.01914673, -0...02702024, 0.0193491 , 0.01165809, 0.00395541])], 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([-4.06408136e-01, -4.07855724e-01, -4.0892....99721876e-01, -4.02349725e-01, -4.04575709e-01]), array([-0.00375116, -0.01145421, -0.01914673, -0...02702024, 0.0193491 , 0.01165809, 0.00395541])], 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([[-4.06408136e-01, -4.07855724e-01, -4.089...93490966e-02, 1.16580898e-02, -3.75116059e-03]]), 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.00268461, 0.00534488, 0.007... 0.98893229, 0.99175827, 0.99454209, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=381, 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([[-4.06408136e-01, -4.07855724e-01, -4.089...93490966e-02, 1.16580898e-02, -3.75116059e-03]]), 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.00268461, 0.00534488, 0.007... 0.98893229, 0.99175827, 0.99454209, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 381, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |