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.37806951372431336, -0.3727673312113207, -0.3674298290962093, -0.3620575696774924, -0.3566511103159112, -0.3512110046096723, -0.345737802325283, -0.3402320496302136, -0.3346942893225612, -0.3291250610580931, -0.32352490157501, -0.3178943449168028, -0.3122339226535966, -0.30654416410234775, -0.30082559654629404, -0.2950787454540727, -0.28930413469889277, -0.283502286778173, -0.2776737230340931, -0.27181896387543025, ...], y_list = [0.4654515715146643, 0.4696581441202832, 0.4738202173372305, 0.47793746896395545, 0.4820095749678972, 0.4860362086124327, 0.4900170405528511, 0.49395173869318804, 0.4978399680436201, 0.5016813905780936, 0.505475665091892, 0.5092224470588462, 0.5129213884878873, 0.5165721377786826, 0.5201743395760802, 0.5237276346230947, 0.5272316596122076, 0.5306860470347433, 0.5340904250280785, 0.5374444172205097, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.37806951372431336, -0.3727673312113207, -0.3674298290962093, -0.3620575696774924, -0.3566511103159112, -0.3512110046096723, -0.345737802325283, -0.3402320496302136, -0.3346942893225612, -0.3291250610580931, -0.32352490157501, -0.3178943449168028, -0.3122339226535966, -0.30654416410234775, -0.30082559654629404, -0.2950787454540727, -0.28930413469889277, -0.283502286778173, -0.2776737230340931, -0.27181896387543025, ...], y_list=[0.4654515715146643, 0.4696581441202832, 0.4738202173372305, 0.47793746896395545, 0.4820095749678972, 0.4860362086124327, 0.4900170405528511, 0.49395173869318804, 0.4978399680436201, 0.5016813905780936, 0.505475665091892, 0.5092224470588462, 0.5129213884878873, 0.5165721377786826, 0.5201743395760802, 0.5237276346230947, 0.5272316596122076, 0.5306860470347433, 0.5340904250280785, 0.5374444172205097, ...]) |
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.61775009, -0.61677649, -0.61565349, -0...6, -0.61980807, -0.61926265,
-0.61857771]), y = array([-0.00509512, -0.01165639, -0.01821483, -0...1, 0.01458987, 0.00802952,
0.00146737]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.61775009, -0.61677649, -0.61565349, -0...6, -0.61980807, -0.61926265,
-0.61857771]), array([-0.00509512, -0.01165639, -0.01821483, -0...1, 0.01458987, 0.00802952,
0.00146737])], 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.61775009, -0.61677649, -0.61565349, -0...6, -0.61980807, -0.61926265,
-0.61857771]), array([-0.00509512, -0.01165639, -0.01821483, -0...1, 0.01458987, 0.00802952,
0.00146737])], 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.61775009, -0.61677649, -0.61565349, -... 0.01458987, 0.00802952,
-0.00509512]]), 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.00225882, 0.00452472, 0.006...2195, 0.99325924, 0.99550099,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=327, 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.61775009, -0.61677649, -0.61565349, -... 0.01458987, 0.00802952,
-0.00509512]]), 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.00225882, 0.00452472, 0.006...2195, 0.99325924, 0.99550099,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 327, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |