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.8646155239525003, 0.8646366148442592, 0.8646517880196589, 0.8646610436778701, 0.8646643819529928, 0.8646618029139742, 0.8646533065647948, 0.864638892844285, 0.8646185616262144, 0.864592312719264, 0.8645601458670152, 0.864522060747935, 0.8644780569753551, 0.8644281340974489, 0.8643722915972056, 0.8643105288923963, 0.8642428453355414, 0.8641692402138701, 0.8640897127492775, 0.8640042620982785, ...], y_list = [0.22834388931024324, 0.22775054859080354, 0.22715564910880431, 0.2265591950154556, 0.22596119041587162, 0.22536163951251112, 0.22476054631887682, 0.22415791494619933, 0.22355374946038153, 0.22294805391083647, 0.2223408323306765, 0.2217320887369011, 0.22112182713058207, 0.22051005149705094, 0.21989676580608303, 0.21928197401208124, 0.2186656800542613, 0.2180478878568325, 0.2174286013291813, 0.21680782436605173, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.8646155239525003, 0.8646366148442592, 0.8646517880196589, 0.8646610436778701, 0.8646643819529928, 0.8646618029139742, 0.8646533065647948, 0.864638892844285, 0.8646185616262144, 0.864592312719264, 0.8645601458670152, 0.864522060747935, 0.8644780569753551, 0.8644281340974489, 0.8643722915972056, 0.8643105288923963, 0.8642428453355414, 0.8641692402138701, 0.8640897127492775, 0.8640042620982785, ...], y_list=[0.22834388931024324, 0.22775054859080354, 0.22715564910880431, 0.2265591950154556, 0.22596119041587162, 0.22536163951251112, 0.22476054631887682, 0.22415791494619933, 0.22355374946038153, 0.22294805391083647, 0.2223408323306765, 0.2217320887369011, 0.22112182713058207, 0.22051005149705094, 0.21989676580608303, 0.21928197401208124, 0.2186656800542613, 0.2180478878568325, 0.2174286013291813, 0.21680782436605173, ...]) |
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.05898805, -0.06035043, -0.06053231, -0...9, -0.04894794, -0.05313149,
-0.05653395]), y = array([-0.00159272, -0.01037995, -0.01896324, -0...8, 0.02439676, 0.01592677,
0.00722612]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.05898805, -0.06035043, -0.06053231, -0...9, -0.04894794, -0.05313149,
-0.05653395]), array([-0.00159272, -0.01037995, -0.01896324, -0...8, 0.02439676, 0.01592677,
0.00722612])], 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.05898805, -0.06035043, -0.06053231, -0...9, -0.04894794, -0.05313149,
-0.05653395]), array([-0.00159272, -0.01037995, -0.01896324, -0...8, 0.02439676, 0.01592677,
0.00722612])], 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.05898805, -0.06035043, -0.06053231, .... 0.02439676,
0.01592677, -0.00159272]]), 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.00415104, 0.00815878, 0.012...4481, 0.98696677, 0.99137673,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=947, 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.05898805, -0.06035043, -0.06053231, .... 0.02439676,
0.01592677, -0.00159272]]), 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.00415104, 0.00815878, 0.012...4481, 0.98696677, 0.99137673,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 947, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |