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.9292666560999977, 0.8816118212084509, 0.8254738935839119, 0.7609066883033193, 0.6882386345489376, 0.6080802138261234, 0.5212953435819577, 0.4289392327350906, 0.33217465974191357, 0.23218398774775192, 0.1300927932070169, 0.02691508833122048, -0.07647734023699124, -0.17936458643616376, -0.2811730649579928, -0.3814608599488101, -0.47989892632136144, -0.576251568339236, -0.6703582080472278, -0.762117414616023, ...], y_list = [0.4219537333511462, 0.4711811119537755, 0.5158665494738697, 0.5552773087722114, 0.5887714887904713, 0.6158558542713878, 0.6362309590459742, 0.6498133090527316, 0.6567301750478648, 0.6572901045426058, 0.6519379085004819, 0.6412046826807896, 0.6256616605462673, 0.6058831042150924, 0.5824199194071141, 0.555783224083331, 0.5264359039536853, 0.4947899122044228, 0.46120731864546866, 0.4260035572745015, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.9292666560999977, 0.8816118212084509, 0.8254738935839119, 0.7609066883033193, 0.6882386345489376, 0.6080802138261234, 0.5212953435819577, 0.4289392327350906, 0.33217465974191357, 0.23218398774775192, 0.1300927932070169, 0.02691508833122048, -0.07647734023699124, -0.17936458643616376, -0.2811730649579928, -0.3814608599488101, -0.47989892632136144, -0.576251568339236, -0.6703582080472278, -0.762117414616023, ...], y_list=[0.4219537333511462, 0.4711811119537755, 0.5158665494738697, 0.5552773087722114, 0.5887714887904713, 0.6158558542713878, 0.6362309590459742, 0.6498133090527316, 0.6567301750478648, 0.6572901045426058, 0.6519379085004819, 0.6412046826807896, 0.6256616605462673, 0.6058831042150924, 0.5824199194071141, 0.555783224083331, 0.5264359039536853, 0.4947899122044228, 0.46120731864546866, 0.4260035572745015, ...]) |
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([-1.6169151 , -1.68175539, -1.74470787, -1...1, -1.41045788, -1.48132825,
-1.55012659]), y = array([-0.01160502, -0.05285357, -0.09404331, -0...5, 0.11200261, 0.07087974,
0.02965693]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-1.6169151 , -1.68175539, -1.74470787, -1...1, -1.41045788, -1.48132825,
-1.55012659]), array([-0.01160502, -0.05285357, -0.09404331, -0...5, 0.11200261, 0.07087974,
0.02965693])], 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([-1.6169151 , -1.68175539, -1.74470787, -1...1, -1.41045788, -1.48132825,
-1.55012659]), array([-0.01160502, -0.05285357, -0.09404331, -0...5, 0.11200261, 0.07087974,
0.02965693])], 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.6169151 , -1.68175539, -1.74470787, -... 0.11200261, 0.07087974,
-0.01160502]]), 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.00621952, 0.01230807, 0.018...4972, 0.98052426, 0.9871556 ,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=297, 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.6169151 , -1.68175539, -1.74470787, -... 0.11200261, 0.07087974,
-0.01160502]]), 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.00621952, 0.01230807, 0.018...4972, 0.98052426, 0.9871556 ,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 297, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |