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.7854350060453295, 0.7709172289261523, 0.7558670023452314, 0.7402882899198, 0.7241849151180161, 0.7075605802949554, 0.6904188869736593, 0.6727633576822464, 0.6545974597058584, 0.6359246311705378, 0.6167483099471938, 0.5970719659506605, 0.5768991367395565, 0.5562334710633648, 0.5350787730378468, 0.5134390578506582, 0.49131861384117587, 0.4687220750262701, 0.445654505772976, 0.4221215001452817, ...], y_list = [0.10345925419633042, 0.11559191035233975, 0.12764471153029894, 0.1396082443363002, 0.1514728079256716, 0.1632283773699158, 0.1748645641929698, 0.1863705736525959, 0.19773515828638427, 0.20894656717514792, 0.21999249029756657, 0.23085999725632683, 0.24153546994650144, 0.25200452618146063, 0.2622519375584562, 0.2722615350465487, 0.282016104283748, 0.2914972674967974, 0.30068535010707337, 0.3095592294920066, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.7854350060453295, 0.7709172289261523, 0.7558670023452314, 0.7402882899198, 0.7241849151180161, 0.7075605802949554, 0.6904188869736593, 0.6727633576822464, 0.6545974597058584, 0.6359246311705378, 0.6167483099471938, 0.5970719659506605, 0.5768991367395565, 0.5562334710633648, 0.5350787730378468, 0.5134390578506582, 0.49131861384117587, 0.4687220750262701, 0.445654505772976, 0.4221215001452817, ...], y_list=[0.10345925419633042, 0.11559191035233975, 0.12764471153029894, 0.1396082443363002, 0.1514728079256716, 0.1632283773699158, 0.1748645641929698, 0.1863705736525959, 0.19773515828638427, 0.20894656717514792, 0.21999249029756657, 0.23085999725632683, 0.24153546994650144, 0.25200452618146063, 0.2622519375584562, 0.2722615350465487, 0.282016104283748, 0.2914972674967974, 0.30068535010707337, 0.3095592294920066, ...]) |
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.19650545, -0.14873722, -0.09454741, -0...4, -0.28008816, -0.26314996,
-0.2352002 ]), y = array([-0.02058493, -0.07130272, -0.11900052, -0...4, 0.12820679, 0.08132122,
0.03106892]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.19650545, -0.14873722, -0.09454741, -0...4, -0.28008816, -0.26314996,
-0.2352002 ]), array([-0.02058493, -0.07130272, -0.11900052, -0...4, 0.12820679, 0.08132122,
0.03106892])], 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.19650545, -0.14873722, -0.09454741, -0...4, -0.28008816, -0.26314996,
-0.2352002 ]), array([-0.02058493, -0.07130272, -0.11900052, -0...4, 0.12820679, 0.08132122,
0.03106892])], 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.19650545, -0.14873722, -0.09454741, -... 0.12820679, 0.08132122,
-0.02058493]]), 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.02200951, 0.04481514, 0.067...4536, 0.94578606, 0.96153434,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=127, 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.19650545, -0.14873722, -0.09454741, -... 0.12820679, 0.08132122,
-0.02058493]]), 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.02200951, 0.04481514, 0.067...4536, 0.94578606, 0.96153434,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 127, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |