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 = [1.047184932951718, 1.0488422467464784, 1.0503516051728368, 1.0517120852721142, 1.052922733385711, 1.0539825643327465, 1.0548905605494514, 1.055645671188352, 1.0562468111752221, 1.0566928602215981, 1.056982661790542, 1.0571150220131877, 1.057088708553433, 1.0569024494179777, 1.0565549317087222, 1.0560448003143494, 1.0553706565376828, 1.0545310566552086, 1.0535245104048876, 1.052349479398128, ...], y_list = [0.15303903516772255, 0.15351730673222935, 0.15397392228828186, 0.15440871333464282, 0.1548215065402963, 0.15521212359473377, 0.15558038105176497, 0.1559260901664933, 0.156249056725079, 0.15654908086688585, 0.15682595689858264, 0.15707947309974682, 0.1573094115194828, 0.1575155477635398, 0.15769765077138007, 0.1578554825826089, 0.15798879809214106, 0.15809734479343443, 0.15818086250907512, 0.15823908310795032, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[1.047184932951718, 1.0488422467464784, 1.0503516051728368, 1.0517120852721142, 1.052922733385711, 1.0539825643327465, 1.0548905605494514, 1.055645671188352, 1.0562468111752221, 1.0566928602215981, 1.056982661790542, 1.0571150220131877, 1.057088708553433, 1.0569024494179777, 1.0565549317087222, 1.0560448003143494, 1.0553706565376828, 1.0545310566552086, 1.0535245104048876, 1.052349479398128, ...], y_list=[0.15303903516772255, 0.15351730673222935, 0.15397392228828186, 0.15440871333464282, 0.1548215065402963, 0.15521212359473377, 0.15558038105176497, 0.1559260901664933, 0.156249056725079, 0.15654908086688585, 0.15682595689858264, 0.15707947309974682, 0.1573094115194828, 0.1575155477635398, 0.15769765077138007, 0.1578554825826089, 0.15798879809214106, 0.15809734479343443, 0.15818086250907512, 0.15823908310795032, ...]) |
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.06761835, -0.10060754, -0.13110547, -0...9, 0.03692515, 0.00188112,
-0.0331742 ]), y = array([-0.00487495, -0.01089528, -0.01664451, -0...4, 0.01336287, 0.00736069,
0.00125239]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.06761835, -0.10060754, -0.13110547, -0...9, 0.03692515, 0.00188112,
-0.0331742 ]), array([-0.00487495, -0.01089528, -0.01664451, -0...4, 0.01336287, 0.00736069,
0.00125239])], 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.06761835, -0.10060754, -0.13110547, -0...9, 0.03692515, 0.00188112,
-0.0331742 ]), array([-0.00487495, -0.01089528, -0.01664451, -0...4, 0.01336287, 0.00736069,
0.00125239])], 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([[-6.76183502e-02, -1.00607543e-01, -1.311...e-02, 7.36069183e-03,
-4.87495068e-03]]), w=array([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.01298049, 0.02499369, 0.035...3656, 0.9589216 , 0.97268412,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=247, 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([[-6.76183502e-02, -1.00607543e-01, -1.311...e-02, 7.36069183e-03,
-4.87495068e-03]]), w = array([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.01298049, 0.02499369, 0.035...3656, 0.9589216 , 0.97268412,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 247, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |