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.003381047528907521, -0.00463892718704786, -0.005896581122261848, -0.007153947760278998, -0.008410965375189447, -0.009667572091200153, -0.010923705884409456, -0.012179304584625553, -0.0134343058772086, -0.01468864730494654, -0.015942266269967562, -0.017195100035680366, -0.01844708572875143, -0.019698160341114015, -0.020948260732011937, -0.022197323630077644, -0.023445285635443867, -0.02469208322189439, -0.025937652739042815, -0.02718193041455577, ...], y_list = [0.43360808502745335, 0.4304806963353085, 0.4273323624203651, 0.42416320875298275, 0.4209733620777048, 0.41776295041504846, 0.4145321030632675, 0.41128095060002673, 0.40800962488403636, 0.40471825905662123, 0.40140698754321585, 0.3980759460548093, 0.3947252715893113, 0.39135510243285804, 0.3879655781610442, 0.38455683964008436, 0.38112902902790396, 0.37768228977514523, 0.37421676662611547, 0.37073260561963384, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.003381047528907521, -0.00463892718704786, -0.005896581122261848, -0.007153947760278998, -0.008410965375189447, -0.009667572091200153, -0.010923705884409456, -0.012179304584625553, -0.0134343058772086, -0.01468864730494654, -0.015942266269967562, -0.017195100035680366, -0.01844708572875143, -0.019698160341114015, -0.020948260732011937, -0.022197323630077644, -0.023445285635443867, -0.02469208322189439, -0.025937652739042815, -0.02718193041455577, ...], y_list=[0.43360808502745335, 0.4304806963353085, 0.4273323624203651, 0.42416320875298275, 0.4209733620777048, 0.41776295041504846, 0.4145321030632675, 0.41128095060002673, 0.40800962488403636, 0.40471825905662123, 0.40140698754321585, 0.3980759460548093, 0.3947252715893113, 0.39135510243285804, 0.3879655781610442, 0.38455683964008436, 0.38112902902790396, 0.37768228977514523, 0.37421676662611547, 0.37073260561963384, ...]) |
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.12652167, -0.12736746, -0.12820594, -0...7,
-0.12394101, -0.12480838, -0.12566862]), y = array([-0.00149246, -0.00589694, -0.01030108, -0... ,
0.01172049, 0.00731651, 0.00291211]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.12652167, -0.12736746, -0.12820594, -0...7,
-0.12394101, -0.12480838, -0.12566862]), array([-0.00149246, -0.00589694, -0.01030108, -0... ,
0.01172049, 0.00731651, 0.00291211])], 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.12652167, -0.12736746, -0.12820594, -0...7,
-0.12394101, -0.12480838, -0.12566862]), array([-0.00149246, -0.00589694, -0.01030108, -0... ,
0.01172049, 0.00731651, 0.00291211])], 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.12652167, -0.12736746, -0.12820594, .... 0.01172049,
0.00731651, -0.00149246]]), 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.00176102, 0.00352136, 0.005...5118,
0.99471391, 0.99647635, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=869, 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.12652167, -0.12736746, -0.12820594, .... 0.01172049,
0.00731651, -0.00149246]]), 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.00176102, 0.00352136, 0.005...5118,
0.99471391, 0.99647635, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 869, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |