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.48922122044231026, -0.4869960724746897, -0.484750847770093, -0.48248546986276314, -0.4801998615262395, -0.47789394476894703, -0.4755676408299274, -0.47322087017473513, -0.47085355249150274, -0.4684656066871974, -0.46605695088408183, -0.46362750241639844, -0.46117717782729173, -0.45870589286599356, -0.4562135624852854, -0.45370010083926643, -0.4511654212814434, -0.4486094363631738, -0.4460320578324833, -0.4434331966332863, ...], y_list = [1.8691553630342794, 1.8691993609025186, 1.869166299289673, 1.8690555277918788, 1.8688663870006124, 1.8685982083282435, 1.8682503138295272, 1.867822016018923, 1.86731261768364, 1.866721411692261, 1.866047680798874, 1.8652906974425405, 1.8644497235420137, 1.863524010285554, 1.8625127979157154, 1.8614153155089679, 1.860230780750016, 1.8589583997006616, 1.857597366563081, 1.8561468634373344, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.48922122044231026, -0.4869960724746897, -0.484750847770093, -0.48248546986276314, -0.4801998615262395, -0.47789394476894703, -0.4755676408299274, -0.47322087017473513, -0.47085355249150274, -0.4684656066871974, -0.46605695088408183, -0.46362750241639844, -0.46117717782729173, -0.45870589286599356, -0.4562135624852854, -0.45370010083926643, -0.4511654212814434, -0.4486094363631738, -0.4460320578324833, -0.4434331966332863, ...], y_list=[1.8691553630342794, 1.8691993609025186, 1.869166299289673, 1.8690555277918788, 1.8688663870006124, 1.8685982083282435, 1.8682503138295272, 1.867822016018923, 1.86731261768364, 1.866721411692261, 1.866047680798874, 1.8652906974425405, 1.8644497235420137, 1.863524010285554, 1.8625127979157154, 1.8614153155089679, 1.860230780750016, 1.8589583997006616, 1.857597366563081, 1.8561468634373344, ...]) |
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.43998662, -0.43760488, -0.43520731, -0...9, -0.44703712, -0.44470272,
-0.44235256]), y = array([-5.89674585e-04, -1.00883065e-02, -1.9586....79049993e-02, 1.84073150e-02, 8.90897893e-03]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.43998662, -0.43760488, -0.43520731, -0...9, -0.44703712, -0.44470272,
-0.44235256]), array([-5.89674585e-04, -1.00883065e-02, -1.9586....79049993e-02, 1.84073150e-02, 8.90897893e-03])], 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.43998662, -0.43760488, -0.43520731, -0...9, -0.44703712, -0.44470272,
-0.44235256]), array([-5.89674585e-04, -1.00883065e-02, -1.9586....79049993e-02, 1.84073150e-02, 8.90897893e-03])], 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.43998662, -0.43760488, -0.43520731, .... 0.027905 ,
0.01840732, -0.00058967]]), 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.0016064 , 0.00321337, 0.004...8114, 0.99518475, 0.99678913,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=657, 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.43998662, -0.43760488, -0.43520731, .... 0.027905 ,
0.01840732, -0.00058967]]), 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.0016064 , 0.00321337, 0.004...8114, 0.99518475, 0.99678913,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 657, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |