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.029831730516795787, 0.030441119258165658, 0.031049321073053967, 0.03165631226367273, 0.03226206909433223, 0.032866567787418734, 0.03346978451936491, 0.0340716954166067, 0.034672276551527575, 0.03527150393838469, 0.03586935352921591, 0.036465801209724556, 0.037060822795137054, 0.03765439402603526, 0.038246490564154745, 0.03883708798815281, 0.03942616178933852, 0.040013687367365436, 0.040599640092968355, 0.04118399506957409, ...], y_list = [0.8418861759224229, 0.8440028543495202, 0.846086624345361, 0.8481374051193666, 0.8501551148717049, 0.8521396707794578, 0.8540909889826462, 0.8560089845700957, 0.8578935715651475, 0.8597446629111953, 0.8615621704570501, 0.8633460049421172, 0.8650960759813847, 0.8668122920502178, 0.8684945604689458, 0.8701427873872482, 0.8717568777683269, 0.8733367353728658, 0.8748822629179853, 0.876393361444342, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.029831730516795787, 0.030441119258165658, 0.031049321073053967, 0.03165631226367273, 0.03226206909433223, 0.032866567787418734, 0.03346978451936491, 0.0340716954166067, 0.034672276551527575, 0.03527150393838469, 0.03586935352921591, 0.036465801209724556, 0.037060822795137054, 0.03765439402603526, 0.038246490564154745, 0.03883708798815281, 0.03942616178933852, 0.040013687367365436, 0.040599640092968355, 0.04118399506957409, ...], y_list=[0.8418861759224229, 0.8440028543495202, 0.846086624345361, 0.8481374051193666, 0.8501551148717049, 0.8521396707794578, 0.8540909889826462, 0.8560089845700957, 0.8578935715651475, 0.8597446629111953, 0.8615621704570501, 0.8633460049421172, 0.8650960759813847, 0.8668122920502178, 0.8684945604689458, 0.8701427873872482, 0.8717568777683269, 0.8733367353728658, 0.8748822629179853, 0.876393361444342, ...]) |
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.06726977, -0.06740863, -0.06753413, -0...7, -0.06677663, -0.06695343,
-0.06711792]), y = array([-0.00481052, -0.01150815, -0.01820349, -0...1, 0.0152829 , 0.00858626,
0.00188804]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.06726977, -0.06740863, -0.06753413, -0...7, -0.06677663, -0.06695343,
-0.06711792]), array([-0.00481052, -0.01150815, -0.01820349, -0...1, 0.0152829 , 0.00858626,
0.00188804])], 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.06726977, -0.06740863, -0.06753413, -0...7, -0.06677663, -0.06695343,
-0.06711792]), array([-0.00481052, -0.01150815, -0.01820349, -0...1, 0.0152829 , 0.00858626,
0.00188804])], 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.06726977, -0.06740863, -0.06753413, .... 0.0152829 ,
0.00858626, -0.00481052]]), 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.00277177, 0.00554249, 0.008...13 , 0.99168374, 0.99445547,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=507, 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.06726977, -0.06740863, -0.06753413, .... 0.0152829 ,
0.00858626, -0.00481052]]), 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.00277177, 0.00554249, 0.008...13 , 0.99168374, 0.99445547,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 507, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |