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.20049060765793583, 0.19756477865749575, 0.19442773337421806, 0.19107937440094291, 0.18751947972831742, 0.18374770637792018, 0.17976359448323861, 0.1755665720182802, 0.17115596042139355, 0.16653098142357128, 0.1616907653110945, 0.15663436186340074, 0.15136075301163515, 0.14586886983746156, 0.14015761373007382, 0.13422588346274406, 0.12807260985200225, 0.1216968002637621, 0.1150975959515027, 0.10827434618850035, ...], y_list = [-0.29459909914920207, -0.3014821297430766, -0.30804281475896783, -0.3142686671419347, -0.32014656423421023, -0.32566267868725335, -0.3308024025306718, -0.335550263319821, -0.3398898311177966, -0.34380361486865574, -0.3472729465847867, -0.350277850847867, -0.3527968984693765, -0.3548070402178605, -0.35628341831316346, -0.3571991515330913, -0.35752508944556616, -0.35722953036577554, -0.35627789660673453, -0.3546323593670008, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.20049060765793583, 0.19756477865749575, 0.19442773337421806, 0.19107937440094291, 0.18751947972831742, 0.18374770637792018, 0.17976359448323861, 0.1755665720182802, 0.17115596042139355, 0.16653098142357128, 0.1616907653110945, 0.15663436186340074, 0.15136075301163515, 0.14586886983746156, 0.14015761373007382, 0.13422588346274406, 0.12807260985200225, 0.1216968002637621, 0.1150975959515027, 0.10827434618850035, ...], y_list=[-0.29459909914920207, -0.3014821297430766, -0.30804281475896783, -0.3142686671419347, -0.32014656423421023, -0.32566267868725335, -0.3308024025306718, -0.335550263319821, -0.3398898311177966, -0.34380361486865574, -0.3472729465847867, -0.350277850847867, -0.3527968984693765, -0.3548070402178605, -0.35628341831316346, -0.3571991515330913, -0.35752508944556616, -0.35722953036577554, -0.35627789660673453, -0.3546323593670008, ...]) |
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.05948914, -0.05585129, -0.05028076, -0...2, -0.05394624, -0.05882671,
-0.06062974]), y = array([-2.42658532e-02, -6.02347426e-02, -9.4168...32e-02, 4.89663657e-02,
1.26752348e-02]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.05948914, -0.05585129, -0.05028076, -0...2, -0.05394624, -0.05882671,
-0.06062974]), array([-2.42658532e-02, -6.02347426e-02, -9.4168...32e-02, 4.89663657e-02,
1.26752348e-02])], 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.05948914, -0.05585129, -0.05028076, -0...2, -0.05394624, -0.05882671,
-0.06062974]), array([-2.42658532e-02, -6.02347426e-02, -9.4168...32e-02, 4.89663657e-02,
1.26752348e-02])], 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([[-5.94891403e-02, -5.58512944e-02, -5.028...e-02,
4.89663657e-02, -2.42658532e-02]]), w=array([1., 1., 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.02740823, 0.05347852, 0.077...7151, 0.91864873, 0.94447813,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=107, 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([[-5.94891403e-02, -5.58512944e-02, -5.028...e-02,
4.89663657e-02, -2.42658532e-02]]), w = array([1., 1., 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.02740823, 0.05347852, 0.077...7151, 0.91864873, 0.94447813,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 107, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |