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.0014409050689000297, 0.003298760003158724, 0.0032242460665809526, 0.0012610125126281645, -0.0014409050689000286, -0.003298760003158724, -0.003224246066580953, -0.001261012512628165, 0.0014409050689000297], y_list = [-0.002845820111935935, 0.0018373557311781449, 0.00544423350587201, 0.005861953129552069, 0.002845820111935937, -0.0018373557311781486, -0.005444233505872009, -0.00586195312955207, -0.002845820111935935] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.0014409050689000297, 0.003298760003158724, 0.0032242460665809526, 0.0012610125126281645, -0.0014409050689000286, -0.003298760003158724, -0.003224246066580953, -0.001261012512628165, 0.0014409050689000297], y_list=[-0.002845820111935935, 0.0018373557311781449, 0.00544423350587201, 0.005861953129552069, 0.002845820111935937, -0.0018373557311781486, -0.005444233505872009, -0.00586195312955207, -0.002845820111935935]) |
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.00329876, -0.00322425, -0.00126101, 0...00329876, 0.00322425, 0.00126101, -0.00144091]), y = array([-0.00183736, -0.00544423, -0.00586195, -0...00183736, 0.00544423, 0.00586195, 0.00284582]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.00329876, -0.00322425, -0.00126101, 0...00329876, 0.00322425, 0.00126101, -0.00144091]), array([-0.00183736, -0.00544423, -0.00586195, -0...00183736, 0.00544423, 0.00586195, 0.00284582])], 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.00329876, -0.00322425, -0.00126101, 0...00329876, 0.00322425, 0.00126101, -0.00144091]), array([-0.00183736, -0.00544423, -0.00586195, -0...00183736, 0.00544423, 0.00586195, 0.00284582])], 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.00329876, -0.00322425, -0.00126101, ...0183736, 0.00544423, 0.00586195, -0.00183736]]), w=array([1., 1., 1., 1., 1., 1., 1., 1., 1.]), u=array([0. , 0.12327308, 0.19185833, 0.330... 0.50238111, 0.62565419, 0.69423944, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=15, 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.00329876, -0.00322425, -0.00126101, ...0183736, 0.00544423, 0.00586195, -0.00183736]]), w = array([1., 1., 1., 1., 1., 1., 1., 1., 1.]), u = array([0. , 0.12327308, 0.19185833, 0.330... 0.50238111, 0.62565419, 0.69423944, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 15, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |