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.22731429922385954, 0.22596247247391274, 0.2245201720414759, 0.22298797541284543, 0.2213664960680819, 0.21965638323537703, 0.2178583216311077, 0.2159730311856804, 0.21400126675527673, 0.21194381781961474, 0.20980150816584664, 0.20757519555872114, 0.20526577139714072, 0.20287416035725195, 0.2004013200222123, 0.19784824049878097, 0.19521594402088735, 0.19250548454033695, 0.1897179473048159, 0.18685444842336643, ...], y_list = [0.06973983382967057, 0.07537063994466679, 0.08097126821963156, 0.08653947620492847, 0.0920730344317617, 0.09756972730484002, 0.1030273539894837, 0.10844372929282242, 0.11381668453873028, 0.11914406843614676, 0.12442374794043877, 0.12965360910745516, 0.1348315579399334, 0.13995552122592175, 0.14502344736887707, 0.1500333072091086, 0.15498309483623895, 0.15987082839235442, 0.16469455086552748, 0.16945233087338904, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.22731429922385954, 0.22596247247391274, 0.2245201720414759, 0.22298797541284543, 0.2213664960680819, 0.21965638323537703, 0.2178583216311077, 0.2159730311856804, 0.21400126675527673, 0.21194381781961474, 0.20980150816584664, 0.20757519555872114, 0.20526577139714072, 0.20287416035725195, 0.2004013200222123, 0.19784824049878097, 0.19521594402088735, 0.19250548454033695, 0.1897179473048159, 0.18685444842336643, ...], y_list=[0.06973983382967057, 0.07537063994466679, 0.08097126821963156, 0.08653947620492847, 0.0920730344317617, 0.09756972730484002, 0.1030273539894837, 0.10844372929282242, 0.11381668453873028, 0.11914406843614676, 0.12442374794043877, 0.12965360910745516, 0.1348315579399334, 0.13995552122592175, 0.14502344736887707, 0.1500333072091086, 0.15498309483623895, 0.15987082839235442, 0.16469455086552748, 0.16945233087338904, ...]) |
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.23631909, -0.23608462, -0.23575562, -0...23631041, -0.2364546 , -0.23650412, -0.23645894]), y = array([-0.0006463 , -0.00646085, -0.0122728 , -0...02259118, 0.01678956, 0.01098123, 0.0051685 ]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.23631909, -0.23608462, -0.23575562, -0...23631041, -0.2364546 , -0.23650412, -0.23645894]), array([-0.0006463 , -0.00646085, -0.0122728 , -0...02259118, 0.01678956, 0.01098123, 0.0051685 ])], 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.23631909, -0.23608462, -0.23575562, -0...23631041, -0.2364546 , -0.23650412, -0.23645894]), array([-0.0006463 , -0.00646085, -0.0122728 , -0...02259118, 0.01678956, 0.01098123, 0.0051685 ])], 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.23631909, -0.23608462, -0.23575562, -...2259118, 0.01678956, 0.01098123, -0.0006463 ]]), 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.00350524, 0.00701169, 0.010... 0.98600078, 0.98949647, 0.99299525, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=321, 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.23631909, -0.23608462, -0.23575562, -...2259118, 0.01678956, 0.01098123, -0.0006463 ]]), 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.00350524, 0.00701169, 0.010... 0.98600078, 0.98949647, 0.99299525, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 321, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |