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.27398897189884985, 0.24145779835739917, 0.20848215693013208, 0.17514363629499177, 0.14151696695440275, 0.10767025112174004, 0.07366527204769474, 0.0395578559299695, 0.005398264656607568, -0.028768397703143527, -0.06290177766955313, -0.09696587395073265, -0.1309286546098991, -0.16476169428432774, -0.1984398341758992, -0.23194086618989845, -0.2652452416011943, -0.2983358039078396, -0.33119754503264254, -0.36381738370388694, ...], ya_list = [-0.006350816735032464, 0.040039574712796754, 0.08635714984755874, 0.13252539518514203, 0.17847671861117476, 0.22415182820814322, 0.26949907506540377, 0.31447378674494064, 0.359037611349019, 0.403157886427754, 0.4468070422927219, 0.4899620456003598, 0.5326038862237693, 0.5747171083132212, 0.6162893849234281, 0.6573111345383957, 0.6977751771464035, 0.7376764271190746, 0.7770116199564747, 0.815779069916624, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.27398897189884985, 0.24145779835739917, 0.20848215693013208, 0.17514363629499177, 0.14151696695440275, 0.10767025112174004, 0.07366527204769474, 0.0395578559299695, 0.005398264656607568, -0.028768397703143527, -0.06290177766955313, -0.09696587395073265, -0.1309286546098991, -0.16476169428432774, -0.1984398341758992, -0.23194086618989845, -0.2652452416011943, -0.2983358039078396, -0.33119754503264254, -0.36381738370388694, ...], y_list=[-0.006350816735032464, 0.040039574712796754, 0.08635714984755874, 0.13252539518514203, 0.17847671861117476, 0.22415182820814322, 0.26949907506540377, 0.31447378674494064, 0.359037611349019, 0.403157886427754, 0.4468070422927219, 0.4899620456003598, 0.5326038862237693, 0.5747171083132212, 0.6162893849234281, 0.6573111345383957, 0.6977751771464035, 0.7376764271190746, 0.7770116199564747, 0.815779069916624, ...]) |
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.52881382, -0.5051885 , -0.48143858, -0...7, -0.59892072, -0.57568189,
-0.5523123 ]), y = array([-0.01393458, -0.03696363, -0.05998354, -0...7, 0.0551512 , 0.03212816,
0.00909784]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.52881382, -0.5051885 , -0.48143858, -0...7, -0.59892072, -0.57568189,
-0.5523123 ]), array([-0.01393458, -0.03696363, -0.05998354, -0...7, 0.0551512 , 0.03212816,
0.00909784])], 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.52881382, -0.5051885 , -0.48143858, -0...7, -0.59892072, -0.57568189,
-0.5523123 ]), array([-0.01393458, -0.03696363, -0.05998354, -0...7, 0.0551512 , 0.03212816,
0.00909784])], 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.52881382, -0.5051885 , -0.48143858, -... 0.0551512 , 0.03212816,
-0.01393458]]), 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.00340598, 0.00682053, 0.010...7234, 0.98983884, 0.99321593,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=427, 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.52881382, -0.5051885 , -0.48143858, -... 0.0551512 , 0.03212816,
-0.01393458]]), 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.00340598, 0.00682053, 0.010...7234, 0.98983884, 0.99321593,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 427, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |