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 = [-8.369933809409847, -8.464666022751343, -8.555741056449243, -8.643243295336816, -8.72725511344136, -8.807856860543785, -8.885126860295738, -8.959141418060646, -9.02997483688518, -9.097699440218836, -9.162385600184967, -9.224101770369424, -9.282914522235535, -9.3388885843987, -9.392086884102854, -9.442570590335679, -9.490399158102285, -9.535630373448779, -9.578320398889556, -9.618523818946347, ...], y_list = [-6.304622340762846, -6.498230127887018, -6.689030637618364, -6.877038153954118, -7.062268765022671, -7.244740128365657, -7.424471260036077, -7.601482345239885, -7.775794568449549, -7.947429961105111, -8.116411265190909, -8.2827618111354, -8.446505408627665, -8.60766624907745, -8.766268818567589, -8.922337820258722, -9.075898105306607, -9.226974611444037, -9.375592308462148, -9.52177614990065, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-8.369933809409847, -8.464666022751343, -8.555741056449243, -8.643243295336816, -8.72725511344136, -8.807856860543785, -8.885126860295738, -8.959141418060646, -9.02997483688518, -9.097699440218836, -9.162385600184967, -9.224101770369424, -9.282914522235535, -9.3388885843987, -9.392086884102854, -9.442570590335679, -9.490399158102285, -9.535630373448779, -9.578320398889556, -9.618523818946347, ...], y_list=[-6.304622340762846, -6.498230127887018, -6.689030637618364, -6.877038153954118, -7.062268765022671, -7.244740128365657, -7.424471260036077, -7.601482345239885, -7.775794568449549, -7.947429961105111, -8.116411265190909, -8.2827618111354, -8.446505408627665, -8.60766624907745, -8.766268818567589, -8.922337820258722, -9.075898105306607, -9.226974611444037, -9.375592308462148, -9.52177614990065, ...]) |
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([-4.09399913, -4.32099368, -4.54235231, -4...13124933, -3.37991955, -3.62336157, -3.86142664]), y = array([-8.83822160e-02, -3.43180332e-01, -5.9753...16e-01, 4.21210396e-01,
1.66533877e-01]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-4.09399913, -4.32099368, -4.54235231, -4...13124933, -3.37991955, -3.62336157, -3.86142664]), array([-8.83822160e-02, -3.43180332e-01, -5.9753...16e-01, 4.21210396e-01,
1.66533877e-01])], 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([-4.09399913, -4.32099368, -4.54235231, -4...13124933, -3.37991955, -3.62336157, -3.86142664]), array([-8.83822160e-02, -3.43180332e-01, -5.9753...16e-01, 4.21210396e-01,
1.66533877e-01])], 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([[-4.09399913e+00, -4.32099368e+00, -4.542...e-01, 4.21210396e-01,
-8.83822160e-02]]), 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.00584271, 0.01161592, 0.017... 0.97602479, 0.98209868, 0.98812311, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=415, 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([[-4.09399913e+00, -4.32099368e+00, -4.542...e-01, 4.21210396e-01,
-8.83822160e-02]]), 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.00584271, 0.01161592, 0.017... 0.97602479, 0.98209868, 0.98812311, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 415, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |