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.22013743621458595, 0.21668249302821274, 0.213159101555329, 0.20956987580607706, 0.2059173262484953, 0.20220386587682432, 0.1984318158679936, 0.19460341085949395, 0.1907208038788541, 0.18678607095223937, 0.1828012154172688, 0.17876817196294284, 0.17468881041760653, 0.17056493930408015, 0.16639830917947138, 0.16219061577571395, 0.1579435029555693, 0.15365856549758963, 0.1493373516122328, 0.14498136589787916, ...], y_list = [0.37466102706300586, 0.3759796653503986, 0.37717954344064586, 0.3782629379757101, 0.37923204448396086, 0.3800889812415131, 0.3808357929139609, 0.3814744539926906, 0.38200687203901246, 0.3824348907484538, 0.3827602928467332, 0.38298480282813946, 0.38311008954632314, 0.3831377686668235, 0.38306940499001957, 0.3829065146526067, 0.3826505672151585, 0.3823029876428107, 0.38186515817339084, 0.38133842015522895, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.22013743621458595, 0.21668249302821274, 0.213159101555329, 0.20956987580607706, 0.2059173262484953, 0.20220386587682432, 0.1984318158679936, 0.19460341085949395, 0.1907208038788541, 0.18678607095223937, 0.1828012154172688, 0.17876817196294284, 0.17468881041760653, 0.17056493930408015, 0.16639830917947138, 0.16219061577571395, 0.1579435029555693, 0.15365856549758963, 0.1493373516122328, 0.14498136589787916, ...], y_list=[0.37466102706300586, 0.3759796653503986, 0.37717954344064586, 0.3782629379757101, 0.37923204448396086, 0.3800889812415131, 0.3808357929139609, 0.3814744539926906, 0.38200687203901246, 0.3824348907484538, 0.3827602928467332, 0.38298480282813946, 0.38311008954632314, 0.3831377686668235, 0.38306940499001957, 0.3829065146526067, 0.3826505672151585, 0.3823029876428107, 0.38186515817339084, 0.38133842015522895, ...]) |
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.28459194, -0.28603458, -0.28733834, -0...8, -0.27948375, -0.2813115 ,
-0.28301586]), y = array([-0.00253096, -0.00811202, -0.01368912, -0... , 0.0142093 , 0.00863219,
0.0030513 ]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.28459194, -0.28603458, -0.28733834, -0...8, -0.27948375, -0.2813115 ,
-0.28301586]), array([-0.00253096, -0.00811202, -0.01368912, -0... , 0.0142093 , 0.00863219,
0.0030513 ])], 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.28459194, -0.28603458, -0.28733834, -0...8, -0.27948375, -0.2813115 ,
-0.28301586]), array([-0.00253096, -0.00811202, -0.01368912, -0... , 0.0142093 , 0.00863219,
0.0030513 ])], 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.28459194, -0.28603458, -0.28733834, -... 0.0142093 , 0.00863219,
-0.00253096]]), 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.00343678, 0.00685149, 0.010...4568, 0.98956405, 0.99306313,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=237, 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.28459194, -0.28603458, -0.28733834, -... 0.0142093 , 0.00863219,
-0.00253096]]), 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.00343678, 0.00685149, 0.010...4568, 0.98956405, 0.99306313,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 237, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |