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.039793343657215346, -0.0368143133039155, -0.033804457624372876, -0.030765073321222042, -0.027697590235145442, -0.02460359363405186, -0.02148485060137292, -0.018343341439751318, -0.015181297246363626, -0.012001245129087509, -0.008806062944141541, -0.005599045981141242, -0.002383988750732678, 0.0008347140784295753, 0.004051941621267108, 0.007261689369186125, 0.010456869201233208, 0.013629054208994257, 0.01676814931821288, 0.019861961644048364, ...], y_list = [-0.0965252226768793, -0.09488076675941397, -0.09315683056901125, -0.09135147903857702, -0.0894626426590399, -0.08748810625727352, -0.08542549659053583, -0.08327226863709401, -0.0810256904599437, -0.07868282652434042, -0.07624051936487014, -0.07369536953130647, -0.07104371380617969, -0.06828160171826173, -0.06540477107231817, -0.06240862216543453, -0.05928819295948215, -0.05603813642319015, -0.05265270372062079, -0.04912573890368729, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.039793343657215346, -0.0368143133039155, -0.033804457624372876, -0.030765073321222042, -0.027697590235145442, -0.02460359363405186, -0.02148485060137292, -0.018343341439751318, -0.015181297246363626, -0.012001245129087509, -0.008806062944141541, -0.005599045981141242, -0.002383988750732678, 0.0008347140784295753, 0.004051941621267108, 0.007261689369186125, 0.010456869201233208, 0.013629054208994257, 0.01676814931821288, 0.019861961644048364, ...], y_list=[-0.0965252226768793, -0.09488076675941397, -0.09315683056901125, -0.09135147903857702, -0.0894626426590399, -0.08748810625727352, -0.08542549659053583, -0.08327226863709401, -0.0810256904599437, -0.07868282652434042, -0.07624051936487014, -0.07369536953130647, -0.07104371380617969, -0.06828160171826173, -0.06540477107231817, -0.06240862216543453, -0.05928819295948215, -0.05603813642319015, -0.05265270372062079, -0.04912573890368729, ...]) |
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.05683412, -0.0634577 , -0.06954937, -0...1, -0.03317565, -0.04175344,
-0.04962008]), y = array([-0.00075953, -0.00475061, -0.00870288, -0...7, 0.01101607, 0.0071903 ,
0.0032379 ]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.05683412, -0.0634577 , -0.06954937, -0...1, -0.03317565, -0.04175344,
-0.04962008]), array([-0.00075953, -0.00475061, -0.00870288, -0...7, 0.01101607, 0.0071903 ,
0.0032379 ])], 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.05683412, -0.0634577 , -0.06954937, -0...1, -0.03317565, -0.04175344,
-0.04962008]), array([-0.00075953, -0.00475061, -0.00870288, -0...7, 0.01101607, 0.0071903 ,
0.0032379 ])], 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.05683412, -0.0634577 , -0.06954937, -... 0.01101607, 0.0071903 ,
-0.00075953]]), 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.01616797, 0.0313499 , 0.045...4215, 0.94472036, 0.96435731,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=137, 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.05683412, -0.0634577 , -0.06954937, -... 0.01101607, 0.0071903 ,
-0.00075953]]), 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.01616797, 0.0313499 , 0.045...4215, 0.94472036, 0.96435731,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 137, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |