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.362651538586623, 0.36952619000396003, 0.3760004166760701, 0.38208496530209995, 0.38778972921059274, 0.3931238249726051, 0.39809565970270905, 0.4027129903311719, 0.40698297592743854, 0.4109122239867716, 0.4145068315020528, 0.41777242114319074, 0.42071417404192474, 0.42333685821946104, 0.42564485433702737, 0.42764217849403974, 0.42933250251271105, 0.4307191719651526, 0.4318052221640544, 0.43259339230751914, ...], y_list = [0.40444700086164126, 0.4144182669782925, 0.4239404813571286, 0.4330233502987882, 0.4416758174521554, 0.44990612253049245, 0.4577218536199547, 0.46512999379744613, 0.4721369626897819, 0.4787486535287471, 0.48497046627498036, 0.49080733664948684, 0.49626376308729253, 0.5013438294211754, 0.506051225788328, 0.5103892669211118, 0.5143609082689946, 0.5179687601295229, 0.5212150999423574, 0.5241018828785339, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.362651538586623, 0.36952619000396003, 0.3760004166760701, 0.38208496530209995, 0.38778972921059274, 0.3931238249726051, 0.39809565970270905, 0.4027129903311719, 0.40698297592743854, 0.4109122239867716, 0.4145068315020528, 0.41777242114319074, 0.42071417404192474, 0.42333685821946104, 0.42564485433702737, 0.42764217849403974, 0.42933250251271105, 0.4307191719651526, 0.4318052221640544, 0.43259339230751914, ...], y_list=[0.40444700086164126, 0.4144182669782925, 0.4239404813571286, 0.4330233502987882, 0.4416758174521554, 0.44990612253049245, 0.4577218536199547, 0.46512999379744613, 0.4721369626897819, 0.4787486535287471, 0.48497046627498036, 0.49080733664948684, 0.49626376308729253, 0.5013438294211754, 0.506051225788328, 0.5103892669211118, 0.5143609082689946, 0.5179687601295229, 0.5212150999423574, 0.5241018828785339, ...]) |
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([-3.67617715e-02, -5.27828523e-02, -6.3694....92915658e-02, 3.55192225e-04, -1.85615988e-02]), y = array([-0.01218859, -0.03996279, -0.06374012, -0...7, 0.07154764,
0.04449805, 0.01641375]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-3.67617715e-02, -5.27828523e-02, -6.3694....92915658e-02, 3.55192225e-04, -1.85615988e-02]), array([-0.01218859, -0.03996279, -0.06374012, -0...7, 0.07154764,
0.04449805, 0.01641375])], 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([-3.67617715e-02, -5.27828523e-02, -6.3694....92915658e-02, 3.55192225e-04, -1.85615988e-02]), array([-0.01218859, -0.03996279, -0.06374012, -0...7, 0.07154764,
0.04449805, 0.01641375])], 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([[-3.67617715e-02, -5.27828523e-02, -6.369...e-02,
4.44980529e-02, -1.21885935e-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.0200977 , 0.03649582, 0.045...6515, 0.9368328 ,
0.9575294 , 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=113, 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([[-3.67617715e-02, -5.27828523e-02, -6.369...e-02,
4.44980529e-02, -1.21885935e-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.0200977 , 0.03649582, 0.045...6515, 0.9368328 ,
0.9575294 , 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 113, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |