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.07740834521880631, -0.08597398681969716, -0.09453261308921224, -0.1030835342468929, -0.11162606262313901, -0.12015951269414826, -0.12868320111635048, -0.1371964467603347, -0.14569857074428047, -0.15418889646690445, -0.1626667496399252, -0.17113145832004104, -0.1795823529404536, -0.1880187663419243, -0.19644003380335928, -0.20484549307197042, -0.21323448439297152, -0.2216063505388488, -0.22996043683819573, -0.23829609120413073, ...], y_list = [0.34518666479732274, 0.3423128066129384, 0.339411015721441, 0.3364815597967928, 0.3335247079949336, 0.3305407309294439, 0.32752990064737003, 0.32449249060522123, 0.3214287756451302, 0.3183390319711814, 0.31522353712590545, 0.31208256996694356, 0.30891641064387554, 0.3057253405752146, 0.30250964242557554, 0.29926960008299913, 0.2960054986364516, 0.2927176243534858, 0.28940626465807, 0.2860717081085791, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.07740834521880631, -0.08597398681969716, -0.09453261308921224, -0.1030835342468929, -0.11162606262313901, -0.12015951269414826, -0.12868320111635048, -0.1371964467603347, -0.14569857074428047, -0.15418889646690445, -0.1626667496399252, -0.17113145832004104, -0.1795823529404536, -0.1880187663419243, -0.19644003380335928, -0.20484549307197042, -0.21323448439297152, -0.2216063505388488, -0.22996043683819573, -0.23829609120413073, ...], y_list=[0.34518666479732274, 0.3423128066129384, 0.339411015721441, 0.3364815597967928, 0.3335247079949336, 0.3305407309294439, 0.32752990064737003, 0.32449249060522123, 0.3214287756451302, 0.3183390319711814, 0.31522353712590545, 0.31208256996694356, 0.30891641064387554, 0.3057253405752146, 0.30250964242557554, 0.29926960008299913, 0.2960054986364516, 0.2927176243534858, 0.28940626465807, 0.2860717081085791, ...]) |
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([-7.62144343e-01, -7.67461121e-01, -7.7271...79e-01, -7.51336121e-01,
-7.56769210e-01]), y = array([-0.0036576 , -0.00785451, -0.01205083, -0...01312965, 0.00893354, 0.00473675, 0.0005396 ]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-7.62144343e-01, -7.67461121e-01, -7.7271...79e-01, -7.51336121e-01,
-7.56769210e-01]), array([-0.0036576 , -0.00785451, -0.01205083, -0...01312965, 0.00893354, 0.00473675, 0.0005396 ])], 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([-7.62144343e-01, -7.67461121e-01, -7.7271...79e-01, -7.51336121e-01,
-7.56769210e-01]), array([-0.0036576 , -0.00785451, -0.01205083, -0...01312965, 0.00893354, 0.00473675, 0.0005396 ])], 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.76214434, -0.76746112, -0.77271915, .... 0.00893354,
0.00473675, -0.0036576 ]]), 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.00152785, 0.00304524, 0.004... 0.99378543, 0.9953544 , 0.99691321, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=675, 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.76214434, -0.76746112, -0.77271915, .... 0.00893354,
0.00473675, -0.0036576 ]]), 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.00152785, 0.00304524, 0.004... 0.99378543, 0.9953544 , 0.99691321, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 675, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |