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.17694538898398038, -0.17228700238065173, -0.1676275337592547, -0.16296701217645437, -0.1583054666984124, -0.1536429264013707, -0.1489794203721757, -0.14431497770884438, -0.13964962752111543, -0.13498339893101047, -0.13031632107338803, -0.12564842309649674, -0.12097973416254186, -0.11631028344823488, -0.11164010014536661, -0.10696921346135288, -0.10229765261981309, -0.09762544686112676, -0.09295262544299458, -0.08827921764100612, ...], y_list = [1.8391465660981083, 1.838095070642707, 1.8370320313440052, 1.835957452615995, 1.8348713388509896, 1.8337736944197327, 1.8326645236714978, 1.8315438309341963, 1.8304116205144778, 1.8292678966978426, 1.828112663748743, 1.8269459259106904, 1.8257676874063664, 1.824577952437726, 1.823376725186112, 1.822164009812357, 1.8209398104569008, 1.819704131239898, 1.8184569762613279, 1.8171983496011066, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.17694538898398038, -0.17228700238065173, -0.1676275337592547, -0.16296701217645437, -0.1583054666984124, -0.1536429264013707, -0.1489794203721757, -0.14431497770884438, -0.13964962752111543, -0.13498339893101047, -0.13031632107338803, -0.12564842309649674, -0.12097973416254186, -0.11631028344823488, -0.11164010014536661, -0.10696921346135288, -0.10229765261981309, -0.09762544686112676, -0.09295262544299458, -0.08827921764100612, ...], y_list=[1.8391465660981083, 1.838095070642707, 1.8370320313440052, 1.835957452615995, 1.8348713388509896, 1.8337736944197327, 1.8326645236714978, 1.8315438309341963, 1.8304116205144778, 1.8292678966978426, 1.828112663748743, 1.8269459259106904, 1.8257676874063664, 1.824577952437726, 1.823376725186112, 1.822164009812357, 1.8209398104569008, 1.819704131239898, 1.8184569762613279, 1.8171983496011066, ...]) |
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.18750664, -1.1809925 , -1.17442071, ..., -1.20670493,
-1.20036267, -1.1939633 ]), y = array([-0.00614817, -0.01317238, -0.02019594, ..., 0.01492488,
0.00790079, 0.00087633]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-1.18750664, -1.1809925 , -1.17442071, ..., -1.20670493,
-1.20036267, -1.1939633 ]), array([-0.00614817, -0.01317238, -0.02019594, ..., 0.01492488,
0.00790079, 0.00087633])], 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.18750664, -1.1809925 , -1.17442071, ..., -1.20670493,
-1.20036267, -1.1939633 ]), array([-0.00614817, -0.01317238, -0.02019594, ..., 0.01492488,
0.00790079, 0.00087633])], 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.18750664, -1.1809925 , -1.17442071, .... 0.01492488,
0.00790079, -0.00614817]]), w=array([1., 1., 1., ..., 1., 1., 1.]), u=array([0. , 0.00106926, 0.00214285, ..., 0.99681817, 0.99787447,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=1455, 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.18750664, -1.1809925 , -1.17442071, .... 0.01492488,
0.00790079, -0.00614817]]), w = array([1., 1., 1., ..., 1., 1., 1.]), u = array([0. , 0.00106926, 0.00214285, ..., 0.99681817, 0.99787447,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 1455, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |