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> |
956
|
957 # Smooth curve if necessary
|
=> 958 xa_smooth, ya_smooth = Q_get_smoothed_orbit(xa_list, ya_list)
|
959 plt.plot(xa_smooth, ya_smooth, label=f'Orbit of {wds}', color='#528B8B')
|
960
|
| xa_smooth undefined, ya_smooth undefined, Q_get_smoothed_orbit = <function Q_get_smoothed_orbit>, xa_list = [-0.11312618496575826, -0.11314695085932121, -0.11315234202963165, -0.11314255100135721, -0.11311776541634563, -0.11307816820314526, -0.11302393773924303, -0.11295524800639749, -0.1128722687394236, -0.11277516556876577, -0.11266410015717493, -0.1125392303307876, -0.11240071019938082, -0.11224869030027577, -0.11208331767752, -0.11190473601915016, -0.11171308575732398, -0.11150850417118675, -0.11129112548580866, -0.11106108096738108, ...], ya_list = [0.8852385594306368, 0.8839502040354246, 0.8825417346006126, 0.8810148498549993, 0.8793712055766348, 0.8776124161488742, 0.8757400560482419, 0.8737556612677544, 0.8716607306791345, 0.8694567273371525, 0.8671450797291332, 0.8647271829724675, 0.8622043998652426, 0.8595780624023981, 0.8568494721687605, 0.8540199018295079, 0.8510905959763915, 0.8480627720647052, 0.8449376213141614, 0.8417163095754527, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.11312618496575826, -0.11314695085932121, -0.11315234202963165, -0.11314255100135721, -0.11311776541634563, -0.11307816820314526, -0.11302393773924303, -0.11295524800639749, -0.1128722687394236, -0.11277516556876577, -0.11266410015717493, -0.1125392303307876, -0.11240071019938082, -0.11224869030027577, -0.11208331767752, -0.11190473601915016, -0.11171308575732398, -0.11150850417118675, -0.11129112548580866, -0.11106108096738108, ...], y_list=[0.8852385594306368, 0.8839502040354246, 0.8825417346006126, 0.8810148498549993, 0.8793712055766348, 0.8776124161488742, 0.8757400560482419, 0.8737556612677544, 0.8716607306791345, 0.8694567273371525, 0.8671450797291332, 0.8647271829724675, 0.8622043998652426, 0.8595780624023981, 0.8568494721687605, 0.8540199018295079, 0.8510905959763915, 0.8480627720647052, 0.8449376213141614, 0.8417163095754527, ...]) |
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.01716576, -0.01597625, -0.01478347, -0...5, -0.02071309, -0.01953434,
-0.01835185]), y = array([-0.0035965 , -0.01290862, -0.0222181 , -0...3, 0.02433694, 0.01502808,
0.00571634]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.01716576, -0.01597625, -0.01478347, -0...5, -0.02071309, -0.01953434,
-0.01835185]), array([-0.0035965 , -0.01290862, -0.0222181 , -0...3, 0.02433694, 0.01502808,
0.00571634])], 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.01716576, -0.01597625, -0.01478347, -0...5, -0.02071309, -0.01953434,
-0.01835185]), array([-0.0035965 , -0.01290862, -0.0222181 , -0...3, 0.02433694, 0.01502808,
0.00571634])], 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([[-1.71657611e-02, -1.59762462e-02, -1.478...e-02, 1.50280766e-02,
-3.59650176e-03]]), 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.00367317, 0.00734548, 0.011...1325, 0.98898266, 0.99265404,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=307, 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([[-1.71657611e-02, -1.59762462e-02, -1.478...e-02, 1.50280766e-02,
-3.59650176e-03]]), 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.00367317, 0.00734548, 0.011...1325, 0.98898266, 0.99265404,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 307, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |