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.028618226152713498, 0.019831559813907322, 0.010735204209139062, 0.0014691461628208024, -0.007820161599497505, -0.016982005665455567, -0.025863939103715847, -0.03431459890639416, -0.04218675790997401, -0.049340530237867754, -0.05564662551140576, -0.06098952749675209, -0.06527046043632163, -0.06841000361372826, -0.07035022338234048, -0.07105621226900716, -0.0705169556184753, -0.06874548473754798, -0.0657783177971756, -0.06167423124630566, ...], y_list = [-0.19774811282660568, -0.2122151790785239, -0.22336459820538934, -0.23097605926085138, -0.2348806211418134, -0.23496639858034482, -0.2311835917923364, -0.22354856813201396, -0.21214669378256087, -0.19713362565104647, -0.17873481239128358, -0.15724302053249062, -0.13301379527746432, -0.10645887989370256, -0.07803774313819825, -0.04824748844842158, -0.017611527557296305, 0.013332516606952463, 0.04404516910532115, 0.07399721219428765, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.028618226152713498, 0.019831559813907322, 0.010735204209139062, 0.0014691461628208024, -0.007820161599497505, -0.016982005665455567, -0.025863939103715847, -0.03431459890639416, -0.04218675790997401, -0.049340530237867754, -0.05564662551140576, -0.06098952749675209, -0.06527046043632163, -0.06841000361372826, -0.07035022338234048, -0.07105621226900716, -0.0705169556184753, -0.06874548473754798, -0.0657783177971756, -0.06167423124630566, ...], y_list=[-0.19774811282660568, -0.2122151790785239, -0.22336459820538934, -0.23097605926085138, -0.2348806211418134, -0.23496639858034482, -0.2311835917923364, -0.22354856813201396, -0.21214669378256087, -0.19713362565104647, -0.17873481239128358, -0.15724302053249062, -0.13301379527746432, -0.10645887989370256, -0.07803774313819825, -0.04824748844842158, -0.017611527557296305, 0.013332516606952463, 0.04404516910532115, 0.07399721219428765, ...]) |
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.07051696, -0.07105621, -0.07035022, -0...4, -0.06167423, -0.06577832,
-0.06874548]), y = array([-0.01761153, -0.04824749, -0.07803774, -0...7, 0.07399721, 0.04404517,
0.01333252]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.07051696, -0.07105621, -0.07035022, -0...4, -0.06167423, -0.06577832,
-0.06874548]), array([-0.01761153, -0.04824749, -0.07803774, -0...7, 0.07399721, 0.04404517,
0.01333252])], 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.07051696, -0.07105621, -0.07035022, -0...4, -0.06167423, -0.06577832,
-0.06874548]), array([-0.01761153, -0.04824749, -0.07803774, -0...7, 0.07399721, 0.04404517,
0.01333252])], 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.07051696, -0.07105621, -0.07035022, -... 0.07399721, 0.04404517,
-0.01761153]]), w=array([1., 1., 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.02925457, 0.05770514, 0.084...6856, 0.9120947 , 0.94095896,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=57, 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.07051696, -0.07105621, -0.07035022, -... 0.07399721, 0.04404517,
-0.01761153]]), w = array([1., 1., 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.02925457, 0.05770514, 0.084...6856, 0.9120947 , 0.94095896,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 57, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |