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.0036649777040051747, 0.010623946145983557, 0.01751741442715136, 0.024302882023244383, 0.030938514270135747, 0.03738340028845173, 0.043597805212747365, 0.049543415170165, 0.05518357349820122, 0.06048350674522073, 0.06541053906034902, 0.06993429365095878, 0.07402688006569788, 0.07766306614839638, 0.08082043360269985, 0.08347951620832128, 0.08562391983676235, 0.08724042352656712, 0.08831906099494596, 0.08885318208322292, ...], y_list = [-0.12338754671031928, -0.13129049926609188, -0.13838400223536776, -0.14462432181351223, -0.14997298435520914, -0.15439701357727822, -0.1578691338684264, -0.16036793845246158, -0.16187802136818633, -0.16239007245227166, -0.16190093473950995, -0.1604136239265552, -0.15793730977915024, -0.1544872595974719, -0.1500847440881483, -0.14475690622327939, -0.13853659389498793, -0.13146215739724162, -0.12357721298353797, -0.11493037395819745, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.0036649777040051747, 0.010623946145983557, 0.01751741442715136, 0.024302882023244383, 0.030938514270135747, 0.03738340028845173, 0.043597805212747365, 0.049543415170165, 0.05518357349820122, 0.06048350674522073, 0.06541053906034902, 0.06993429365095878, 0.07402688006569788, 0.07766306614839638, 0.08082043360269985, 0.08347951620832128, 0.08562391983676235, 0.08724042352656712, 0.08831906099494596, 0.08885318208322292, ...], y_list=[-0.12338754671031928, -0.13129049926609188, -0.13838400223536776, -0.14462432181351223, -0.14997298435520914, -0.15439701357727822, -0.1578691338684264, -0.16036793845246158, -0.16187802136818633, -0.16239007245227166, -0.16190093473950995, -0.1604136239265552, -0.15793730977915024, -0.1544872595974719, -0.1500847440881483, -0.14475690622327939, -0.13853659389498793, -0.13146215739724162, -0.12357721298353797, -0.11493037395819745, ...]) |
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.06022748, -0.05490976, -0.04925352, -0... , -0.07383317, -0.06971844,
-0.06517387]), y = array([-1.25954072e-02, -2.52591807e-02, -3.7767...75e-02, 1.28865492e-02,
1.46021128e-04]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.06022748, -0.05490976, -0.04925352, -0... , -0.07383317, -0.06971844,
-0.06517387]), array([-1.25954072e-02, -2.52591807e-02, -3.7767...75e-02, 1.28865492e-02,
1.46021128e-04])], 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.06022748, -0.05490976, -0.04925352, -0... , -0.07383317, -0.06971844,
-0.06517387]), array([-1.25954072e-02, -2.52591807e-02, -3.7767...75e-02, 1.28865492e-02,
1.46021128e-04])], 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.02274779e-02, -5.49097649e-02, -4.925...55476275e-02, 1.28865492e-02, -1.25954072e-02]]), w=array([1., 1., 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.01752143, 0.03503335, 0.052...0885, 0.94832855, 0.9653116 ,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=87, 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.02274779e-02, -5.49097649e-02, -4.925...55476275e-02, 1.28865492e-02, -1.25954072e-02]]), w = array([1., 1., 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.01752143, 0.03503335, 0.052...0885, 0.94832855, 0.9653116 ,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 87, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |