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.1269054096918025, -0.12458873114949377, -0.1220155960910265, -0.11918794099626243, -0.11610761429934938, -0.1127764035079034, -0.10919606636289046, -0.1053683671267119, -0.101295119360216, -0.09697823690035477, -0.09241979520364221, -0.08762210580941375, -0.08258780744547085, -0.0773199782288641, -0.07182227519339236, -0.06609910798040049, -0.06015585755732866, -0.05399915244978647, -0.047637219968943864, -0.041080335271730745, ...], y_list = [0.17873725845038116, 0.17710925323617718, 0.17511667517549204, 0.1727588014727255, 0.17003467816711437, 0.166943132485413, 0.1634827885593429, 0.15965208750858173, 0.15544931319130031, 0.15087262531534795, 0.14592010211509313, 0.14058979547366268, 0.13487980226529275, 0.12878835679557482, 0.1223139513410895, 0.1154554926181331, 0.10821250688574557, 0.10058540865645973, 0.0925758543920442, 0.08418720978675699, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.1269054096918025, -0.12458873114949377, -0.1220155960910265, -0.11918794099626243, -0.11610761429934938, -0.1127764035079034, -0.10919606636289046, -0.1053683671267119, -0.101295119360216, -0.09697823690035477, -0.09241979520364221, -0.08762210580941375, -0.08258780744547085, -0.0773199782288641, -0.07182227519339236, -0.06609910798040049, -0.06015585755732866, -0.05399915244978647, -0.047637219968943864, -0.041080335271730745, ...], y_list=[0.17873725845038116, 0.17710925323617718, 0.17511667517549204, 0.1727588014727255, 0.17003467816711437, 0.166943132485413, 0.1634827885593429, 0.15965208750858173, 0.15544931319130031, 0.15087262531534795, 0.14592010211509313, 0.14058979547366268, 0.13487980226529275, 0.12878835679557482, 0.1223139513410895, 0.1154554926181331, 0.10821250688574557, 0.10058540865645973, 0.0925758543920442, 0.08418720978675699, ...]) |
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.01674964, -0.00737311, 0.00211542, 0...7, -0.04327552, -0.03476275,
-0.02590442]), y = array([-0.0021223 , -0.01329528, -0.02425441, -0...9, 0.03109119, 0.02018677,
0.00908307]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.01674964, -0.00737311, 0.00211542, 0...7, -0.04327552, -0.03476275,
-0.02590442]), array([-0.0021223 , -0.01329528, -0.02425441, -0...9, 0.03109119, 0.02018677,
0.00908307])], 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.01674964, -0.00737311, 0.00211542, 0...7, -0.04327552, -0.03476275,
-0.02590442]), array([-0.0021223 , -0.01329528, -0.02425441, -0...9, 0.03109119, 0.02018677,
0.00908307])], 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.01674964, -0.00737311, 0.00211542, ... 0.03109119, 0.02018677,
-0.0021223 ]]), 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.02300292, 0.04586378, 0.068...471 , 0.93296425, 0.95478072,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=87, 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.01674964, -0.00737311, 0.00211542, ... 0.03109119, 0.02018677,
-0.0021223 ]]), 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.02300292, 0.04586378, 0.068...471 , 0.93296425, 0.95478072,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 87, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |