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.5854484884475324, 0.5822331670838059, 0.5790078146364239, 0.5757724618931898, 0.5725271396732672, 0.5692718788308692, 0.5660067102589991, 0.562731664893231, 0.5594467737155401, 0.5561520677581803, 0.5528475781076109, 0.5495333359084759, 0.5462093723676363, 0.5428757187582534, 0.5395324064239292, 0.5361794667829066, 0.5328169313323261, 0.5294448316525416, 0.5260631994115013, 0.5226720663691908, ...], y_list = [1.2839976144535499, 1.283430328026078, 1.2828409297977004, 1.282229375018319, 1.2815956184413062, 1.2809396143192855, 1.280261316399851, 1.2795606779212216, 1.2788376516078281, 1.2780921896658375, 1.2773242437786063, 1.2765337651020683, 1.2757207042600502, 1.2748850113395196, 1.2740266358857584, 1.273145526897464, 1.2722416328217814, 1.2713149015492502, 1.2703652804086853, 1.2693927161619754, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.5854484884475324, 0.5822331670838059, 0.5790078146364239, 0.5757724618931898, 0.5725271396732672, 0.5692718788308692, 0.5660067102589991, 0.562731664893231, 0.5594467737155401, 0.5561520677581803, 0.5528475781076109, 0.5495333359084759, 0.5462093723676363, 0.5428757187582534, 0.5395324064239292, 0.5361794667829066, 0.5328169313323261, 0.5294448316525416, 0.5260631994115013, 0.5226720663691908, ...], y_list=[1.2839976144535499, 1.283430328026078, 1.2828409297977004, 1.282229375018319, 1.2815956184413062, 1.2809396143192855, 1.280261316399851, 1.2795606779212216, 1.2788376516078281, 1.2780921896658375, 1.2773242437786063, 1.2765337651020683, 1.2757207042600502, 1.2748850113395196, 1.2740266358857584, 1.273145526897464, 1.2722416328217814, 1.2713149015492502, 1.2703652804086853, 1.2693927161619754, ...]) |
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([-3.42404445e-01, -3.40374449e-01, -3.3808...69e-01, -3.45714677e-01,
-3.44181163e-01]), y = array([-6.39566911e-03, -1.74437056e-02, -2.8478...93e-02, 1.57067596e-02,
4.65716103e-03]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-3.42404445e-01, -3.40374449e-01, -3.3808...69e-01, -3.45714677e-01,
-3.44181163e-01]), array([-6.39566911e-03, -1.74437056e-02, -2.8478...93e-02, 1.57067596e-02,
4.65716103e-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([-3.42404445e-01, -3.40374449e-01, -3.3808...69e-01, -3.45714677e-01,
-3.44181163e-01]), array([-6.39566911e-03, -1.74437056e-02, -2.8478...93e-02, 1.57067596e-02,
4.65716103e-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.34240445, -0.34037445, -0.33808083, .... 0.02674581,
0.01570676, -0.00639567]]), 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.00250088, 0.00501008, 0.007...8406, 0.9925496 , 0.99502429,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=747, 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.34240445, -0.34037445, -0.33808083, .... 0.02674581,
0.01570676, -0.00639567]]), 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.00250088, 0.00501008, 0.007...8406, 0.9925496 , 0.99502429,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 747, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |