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.25011108057069614, -0.24592131491715027, -0.2415337763751703, -0.2369484944653756, -0.23216534727562171, -0.22718406208427963, -0.2220042156068066, -0.21662523444089601, -0.21104639480994206, -0.2052668228566628, -0.19928549491923975, -0.1931012382628791, -0.18671273251093862, -0.18011851215175742, -0.17331697062487836, -0.16630636666556375, -0.15908483382861896, -0.15165039444952677, -0.14400097977385382, -0.13613445865582322, ...], y_list = [0.18828652303055748, 0.19113561126476855, 0.19383097209075545, 0.19636762780242595, 0.1987402872002337, 0.20094331371249463, 0.20297068975460425, 0.20481597650821737, 0.20647226878168512, 0.20793214361053053, 0.20918760183839338, 0.21023000129132477, 0.2110499800070789, 0.21163736762005184, 0.21198108256620668, 0.2120690122164401, 0.2118878723332477, 0.21142304132211576, 0.21065836354385342, 0.2095759143667153, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.25011108057069614, -0.24592131491715027, -0.2415337763751703, -0.2369484944653756, -0.23216534727562171, -0.22718406208427963, -0.2220042156068066, -0.21662523444089601, -0.21104639480994206, -0.2052668228566628, -0.19928549491923975, -0.1931012382628791, -0.18671273251093862, -0.18011851215175742, -0.17331697062487836, -0.16630636666556375, -0.15908483382861896, -0.15165039444952677, -0.14400097977385382, -0.13613445865582322, ...], y_list=[0.18828652303055748, 0.19113561126476855, 0.19383097209075545, 0.19636762780242595, 0.1987402872002337, 0.20094331371249463, 0.20297068975460425, 0.20481597650821737, 0.20647226878168512, 0.20793214361053053, 0.20918760183839338, 0.21023000129132477, 0.2110499800070789, 0.21163736762005184, 0.21198108256620668, 0.2120690122164401, 0.2118878723332477, 0.21142304132211576, 0.21065836354385342, 0.2095759143667153, ...]) |
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.23652996, -0.23007691, -0.22313864, -0... , -0.25323288, -0.24808524,
-0.24252475]), y = array([-6.17750502e-03, -1.23555614e-02, -1.8507...42e-02, 6.20299789e-03,
1.26875668e-05]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.23652996, -0.23007691, -0.22313864, -0... , -0.25323288, -0.24808524,
-0.24252475]), array([-6.17750502e-03, -1.23555614e-02, -1.8507...42e-02, 6.20299789e-03,
1.26875668e-05])], 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.23652996, -0.23007691, -0.22313864, -0... , -0.25323288, -0.24808524,
-0.24252475]), array([-6.17750502e-03, -1.23555614e-02, -1.8507...42e-02, 6.20299789e-03,
1.26875668e-05])], 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.23652996, -0.23007691, -0.22313864, -... 0.0123831 , 0.006203 ,
-0.00617751]]), 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.00900972, 0.01836143, 0.028...6083, 0.974809 , 0.98292061,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=107, 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.23652996, -0.23007691, -0.22313864, -... 0.0123831 , 0.006203 ,
-0.00617751]]), 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.00900972, 0.01836143, 0.028...6083, 0.974809 , 0.98292061,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 107, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |