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.1480822029489966, 0.15601973579654418, 0.16337521670710944, 0.17012667464686018, 0.17625271977817347, 0.1817323784641769, 0.1865449493259104, 0.19066987868221139, 0.19408665419160404, 0.19677471607988725, 0.1987133866235624, 0.19988181887327042, 0.20025896715202357, 0.19982358289783006, 0.19855424107286665, 0.19642940433987094, 0.1934275347333718, 0.18952726578893198, 0.18470765224934524, 0.17894851980217538, ...], y_list = [0.22692641209774836, 0.2277339535015299, 0.22769183198739812, 0.22680785230337736, 0.22509006611741306, 0.22254678373997241, 0.21918660988433203, 0.21501850337878456, 0.2100518615929804, 0.20429663158673025, 0.1977634504277816, 0.1904638189759925, 0.18241031410210667, 0.17361684607511826, 0.16409896949172806, 0.15387425818023745, 0.14296275694821703, 0.1313875259339073, 0.1191752967173627, 0.10635726326694168, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.1480822029489966, 0.15601973579654418, 0.16337521670710944, 0.17012667464686018, 0.17625271977817347, 0.1817323784641769, 0.1865449493259104, 0.19066987868221139, 0.19408665419160404, 0.19677471607988725, 0.1987133866235624, 0.19988181887327042, 0.20025896715202357, 0.19982358289783006, 0.19855424107286665, 0.19642940433987094, 0.1934275347333718, 0.18952726578893198, 0.18470765224934524, 0.17894851980217538, ...], y_list=[0.22692641209774836, 0.2277339535015299, 0.22769183198739812, 0.22680785230337736, 0.22509006611741306, 0.22254678373997241, 0.21918660988433203, 0.21501850337878456, 0.2100518615929804, 0.20429663158673025, 0.1977634504277816, 0.1904638189759925, 0.18241031410210667, 0.17361684607511826, 0.16409896949172806, 0.15387425818023745, 0.14296275694821703, 0.1313875259339073, 0.1191752967173627, 0.10635726326694168, ...]) |
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.09829195, -0.10577064, -0.11171977, -0...2, -0.06898012, -0.07968387,
-0.08952212]), y = array([-0.00546988, -0.02296625, -0.04012682, -0...3, 0.04664671, 0.02953294,
0.01210196]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.09829195, -0.10577064, -0.11171977, -0...2, -0.06898012, -0.07968387,
-0.08952212]), array([-0.00546988, -0.02296625, -0.04012682, -0...3, 0.04664671, 0.02953294,
0.01210196])], 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.09829195, -0.10577064, -0.11171977, -0...2, -0.06898012, -0.07968387,
-0.08952212]), array([-0.00546988, -0.02296625, -0.04012682, -0...3, 0.04664671, 0.02953294,
0.01210196])], 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.09829195, -0.10577064, -0.11171977, -... 0.04664671, 0.02953294,
-0.00546988]]), 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.01882257, 0.03678928, 0.053...5965, 0.94081798, 0.96078577,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=77, 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.09829195, -0.10577064, -0.11171977, -... 0.04664671, 0.02953294,
-0.00546988]]), 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.01882257, 0.03678928, 0.053...5965, 0.94081798, 0.96078577,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 77, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |