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.26249719746435923, -0.2610679305257003, -0.25963059397836163, -0.2581852224155248, -0.2567318504028072, -0.255270512482556, -0.2538012431781706, -0.252324076998459, -0.2508390484420289, -0.24934619200171473, -0.24784554216903795, -0.2463371334387139, -0.2448210003131888, -0.24329717730722794, -0.24176569895254071, -0.24022659980245492, -0.23867991443663486, -0.23712567746584953, -0.23556392353679234, -0.23399468733694936, ...], y_list = [-0.011210956879773389, -0.010008590378409355, -0.00880591451866038, -0.0076029661419874175, -0.006399782178066112, -0.005196399649010206, -0.003992855673624051, -0.0027891874716862866, -0.0015854323682675164, -0.0003816277980819577, 0.0008221886901289569, 0.002025979429169641, 0.003229706628933926, 0.004433332371901932, 0.005636818608601183, 0.006840127153023215, 0.008043219677998172, 0.009246057710524128, 0.010448602627048578, 0.011650815648705405, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.26249719746435923, -0.2610679305257003, -0.25963059397836163, -0.2581852224155248, -0.2567318504028072, -0.255270512482556, -0.2538012431781706, -0.252324076998459, -0.2508390484420289, -0.24934619200171473, -0.24784554216903795, -0.2463371334387139, -0.2448210003131888, -0.24329717730722794, -0.24176569895254071, -0.24022659980245492, -0.23867991443663486, -0.23712567746584953, -0.23556392353679234, -0.23399468733694936, ...], y_list=[-0.011210956879773389, -0.010008590378409355, -0.00880591451866038, -0.0076029661419874175, -0.006399782178066112, -0.005196399649010206, -0.003992855673624051, -0.0027891874716862866, -0.0015854323682675164, -0.0003816277980819577, 0.0008221886901289569, 0.002025979429169641, 0.003229706628933926, 0.004433332371901932, 0.005636818608601183, 0.006840127153023215, 0.008043219677998172, 0.009246057710524128, 0.010448602627048578, 0.011650815648705405, ...]) |
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([-2.49346192e-01, -2.50839048e-01, -2.5232...00e-01, -2.46337133e-01,
-2.47845542e-01]), y = array([-0.00038163, -0.00158543, -0.00278919, -0...3, 0.00322971, 0.00202598,
0.00082219]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-2.49346192e-01, -2.50839048e-01, -2.5232...00e-01, -2.46337133e-01,
-2.47845542e-01]), array([-0.00038163, -0.00158543, -0.00278919, -0...3, 0.00322971, 0.00202598,
0.00082219])], 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([-2.49346192e-01, -2.50839048e-01, -2.5232...00e-01, -2.46337133e-01,
-2.47845542e-01]), array([-0.00038163, -0.00158543, -0.00278919, -0...3, 0.00322971, 0.00202598,
0.00082219])], 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.24934619, -0.25083905, -0.25232408, .... 0.00322971,
0.00202598, -0.00038163]]), 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.00142243, 0.00284033, 0.004...6546, 0.99570576, 0.99714164,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=627, 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.24934619, -0.25083905, -0.25232408, .... 0.00322971,
0.00202598, -0.00038163]]), 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.00142243, 0.00284033, 0.004...6546, 0.99570576, 0.99714164,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 627, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |