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.23966483996349738, -0.24072152993708773, -0.24172723267792173, -0.24268195691204839, -0.2435857132399496, -0.24443851403435427, -0.2452403733447923, -0.24599130680864545, -0.2466913315684716, -0.24734046619538924, -0.2479387306183289, -0.2484861460763894, -0.24898273498155238, -0.24942852099661128, -0.24982352888412263, -0.25016778449325106, -0.25046131472070776, -0.25070414747657865, -0.25089631165494375, -0.2510378371091939, ...], y_list = [-0.16865466013258756, -0.16635376943985483, -0.1640176428767129, -0.16164692574098738, -0.15924225919662796, -0.15680428046616707, -0.15433362302322587, -0.1518309167850868, -0.14929678830535972, -0.14673186096677285, -0.1441367551741315, -0.14151208845940186, -0.1388584760624986, -0.1361765304789746, -0.13346686214059003, -0.13073007946930817, -0.1279667890726563, -0.1251775959396817, -0.12236310363758995, -0.11952391450915466, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.23966483996349738, -0.24072152993708773, -0.24172723267792173, -0.24268195691204839, -0.2435857132399496, -0.24443851403435427, -0.2452403733447923, -0.24599130680864545, -0.2466913315684716, -0.24734046619538924, -0.2479387306183289, -0.2484861460763894, -0.24898273498155238, -0.24942852099661128, -0.24982352888412263, -0.25016778449325106, -0.25046131472070776, -0.25070414747657865, -0.25089631165494375, -0.2510378371091939, ...], y_list=[-0.16865466013258756, -0.16635376943985483, -0.1640176428767129, -0.16164692574098738, -0.15924225919662796, -0.15680428046616707, -0.15433362302322587, -0.1518309167850868, -0.14929678830535972, -0.14673186096677285, -0.1441367551741315, -0.14151208845940186, -0.1388584760624986, -0.1361765304789746, -0.13346686214059003, -0.13073007946930817, -0.1279667890726563, -0.1251775959396817, -0.12236310363758995, -0.11952391450915466, ...]) |
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.22104085, -0.22274208, -0.22439463, -0...2137512 , -0.21564612, -0.21749277, -0.21929105]), y = array([-0.00266061, -0.0059821 , -0.00930227, -0...01062381, 0.00730441, 0.00398338, 0.00066146]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.22104085, -0.22274208, -0.22439463, -0...2137512 , -0.21564612, -0.21749277, -0.21929105]), array([-0.00266061, -0.0059821 , -0.00930227, -0...01062381, 0.00730441, 0.00398338, 0.00066146])], 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.22104085, -0.22274208, -0.22439463, -0...2137512 , -0.21564612, -0.21749277, -0.21929105]), array([-0.00266061, -0.0059821 , -0.00930227, -0...01062381, 0.00730441, 0.00398338, 0.00066146])], 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.22104085, -0.22274208, -0.22439463, -...1062381, 0.00730441, 0.00398338, -0.00266061]]), 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.00306045, 0.00610195, 0.009... 0.98757213, 0.9907067 , 0.993823 , 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=305, 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.22104085, -0.22274208, -0.22439463, -...1062381, 0.00730441, 0.00398338, -0.00266061]]), 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.00306045, 0.00610195, 0.009... 0.98757213, 0.9907067 , 0.993823 , 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 305, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |