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> |
956
|
957 # Smooth curve if necessary
|
=> 958 xa_smooth, ya_smooth = Q_get_smoothed_orbit(xa_list, ya_list)
|
959 plt.plot(xa_smooth, ya_smooth, label=f'Orbit of {wds}', color='#528B8B')
|
960
|
| xa_smooth undefined, ya_smooth undefined, Q_get_smoothed_orbit = <function Q_get_smoothed_orbit>, xa_list = [0.3732951914380544, 0.374371904594674, 0.3754410545267498, 0.3765025962300544, 0.3775564843183565, 0.3786026730175504, 0.37964111615969665, 0.3806717671769573, 0.3816945790954381, 0.3827095045289317, 0.3837164956725566, 0.38471550429628976, 0.3857064817383977, 0.3866893788987503, 0.38766414623202694, 0.38863073374081003, 0.3895890909685553, 0.39053916699244723, 0.39148091041613026, 0.3924142693623104, ...], ya_list = [0.5365370612303411, 0.5341261660346778, 0.531704480230075, 0.5292720195949305, 0.5268287998615908, 0.5243748367191574, 0.5219101458163254, 0.51943474276428, 0.5169486431396267, 0.5144518624873708, 0.5119444163239414, 0.509426320140268, 0.506897589404902, 0.5043582395671975, 0.5018082860605427, 0.49924774430564217, 0.49667662971386733, 0.4940949576906577, 0.491502743638988, 0.48890000296290015, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.3732951914380544, 0.374371904594674, 0.3754410545267498, 0.3765025962300544, 0.3775564843183565, 0.3786026730175504, 0.37964111615969665, 0.3806717671769573, 0.3816945790954381, 0.3827095045289317, 0.3837164956725566, 0.38471550429628976, 0.3857064817383977, 0.3866893788987503, 0.38766414623202694, 0.38863073374081003, 0.3895890909685553, 0.39053916699244723, 0.39148091041613026, 0.3924142693623104, ...], y_list=[0.5365370612303411, 0.5341261660346778, 0.531704480230075, 0.5292720195949305, 0.5268287998615908, 0.5243748367191574, 0.5219101458163254, 0.51943474276428, 0.5169486431396267, 0.5144518624873708, 0.5119444163239414, 0.509426320140268, 0.506897589404902, 0.5043582395671975, 0.5018082860605427, 0.49924774430564217, 0.49667662971386733, 0.4940949576906577, 0.491502743638988, 0.48890000296290015, ...]) |
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.14870655, -0.14370609, -0.13847247, -0...3, -0.16234558,
-0.15802185, -0.1534771 ]), y = array([-4.12305373e-04, -1.03326831e-02, -2.0236....92963267e-02, 1.94161029e-02, 9.50883418e-03]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.14870655, -0.14370609, -0.13847247, -0...3, -0.16234558,
-0.15802185, -0.1534771 ]), array([-4.12305373e-04, -1.03326831e-02, -2.0236....92963267e-02, 1.94161029e-02, 9.50883418e-03])], 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.14870655, -0.14370609, -0.13847247, -0...3, -0.16234558,
-0.15802185, -0.1534771 ]), array([-4.12305373e-04, -1.03326831e-02, -2.0236....92963267e-02, 1.94161029e-02, 9.50883418e-03])], 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.14870655, -0.14370609, -0.13847247, .... 0.02929633,
0.0194161 , -0.00041231]]), 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.00425843, 0.0085521 , 0.012...8055, 0.9874684 ,
0.99160244, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=693, 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.14870655, -0.14370609, -0.13847247, .... 0.02929633,
0.0194161 , -0.00041231]]), 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.00425843, 0.0085521 , 0.012...8055, 0.9874684 ,
0.99160244, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 693, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |