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 = [-1.3316987800086366, -1.3376146611330777, -1.343476434298825, -1.3492838576219777, -1.3550366883587588, -1.3607346828902265, -1.3663775966924459, -1.37196518430669, -1.3774971993096252, -1.3829733942835127, -1.3883935207863893, -1.3937573293222127, -1.3990645693109982, -1.4043149890588993, -1.4095083357282476, -1.4146443553075354, -1.4197227925813383, -1.424743391100157, -1.4297058931501923, -1.4346100397230315, ...], y_list = [-1.089530146724419, -1.0811184770837832, -1.0726630750700066, -1.064164278878218, -1.0556224261719094, -1.0470378541047867, -1.0384108993632666, -1.0297418982090727, -1.0210311865219772, -1.0122790998426576, -1.0034859734157184, -0.9946521422329052, -0.9857779410764717, -0.9768637045627875, -0.9679097671861426, -0.9589164633628073, -0.9498841274753346, -0.9408130939171566, -0.931703697137448, -0.9225562716863112, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-1.3316987800086366, -1.3376146611330777, -1.343476434298825, -1.3492838576219777, -1.3550366883587588, -1.3607346828902265, -1.3663775966924459, -1.37196518430669, -1.3774971993096252, -1.3829733942835127, -1.3883935207863893, -1.3937573293222127, -1.3990645693109982, -1.4043149890588993, -1.4095083357282476, -1.4146443553075354, -1.4197227925813383, -1.424743391100157, -1.4297058931501923, -1.4346100397230315, ...], y_list=[-1.089530146724419, -1.0811184770837832, -1.0726630750700066, -1.064164278878218, -1.0556224261719094, -1.0470378541047867, -1.0384108993632666, -1.0297418982090727, -1.0210311865219772, -1.0122790998426576, -1.0034859734157184, -0.9946521422329052, -0.9857779410764717, -0.9768637045627875, -0.9679097671861426, -0.9589164633628073, -0.9498841274753346, -0.9408130939171566, -0.931703697137448, -0.9225562716863112, ...]) |
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([-1.60214876e+00, -1.60363634e+00, -1.6050...75e+00, -1.59890050e+00,
-1.60057032e+00]), y = array([-1.08233978e-02, -2.18482132e-02, -3.2871...68e-02, 1.12274468e-02,
2.02030610e-04]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-1.60214876e+00, -1.60363634e+00, -1.6050...75e+00, -1.59890050e+00,
-1.60057032e+00]), array([-1.08233978e-02, -2.18482132e-02, -3.2871...68e-02, 1.12274468e-02,
2.02030610e-04])], 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([-1.60214876e+00, -1.60363634e+00, -1.6050...75e+00, -1.59890050e+00,
-1.60057032e+00]), array([-1.08233978e-02, -2.18482132e-02, -3.2871...68e-02, 1.12274468e-02,
2.02030610e-04])], 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([[-1.60214876, -1.60363634, -1.60503359, .... 0.02225222,
0.01122745, -0.0108234 ]]), 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.00140143, 0.00280123, 0.004... 0.99437754, 0.99578573, 0.99719218, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=571, 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([[-1.60214876, -1.60363634, -1.60503359, .... 0.02225222,
0.01122745, -0.0108234 ]]), 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.00140143, 0.00280123, 0.004... 0.99437754, 0.99578573, 0.99719218, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 571, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |