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 = [2.3924897284660167, 2.3915163067967473, 2.390537272644397, 2.389552628205186, 2.388562375657862, 2.3875665171637346, 2.3865650548667, 2.3855579908932745, 2.3845453273526247, 2.3835270663365935, 2.382503209919732, 2.381473760159328, 2.380438719095437, 2.379398088750904, 2.378351871131399, 2.3773000682254404, 2.376242682004426, 2.3751797144226576, 2.3741111674173707, 2.3730370429087597, ...], y_list = [4.390273847766317, 4.38908787237566, 4.387891596540316, 4.386685022881608, 4.385468153988724, 4.384240992418769, 4.383003540696784, 4.381755801315794, 4.380497776736837, 4.379229469388993, 4.37795088166943, 4.376662015943426, 4.375362874544409, 4.374053459773984, 4.372733773901967, 4.371403819166417, 4.370063597773666, 4.36871311189835, 4.367352363683437, 4.365981355240259, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[2.3924897284660167, 2.3915163067967473, 2.390537272644397, 2.389552628205186, 2.388562375657862, 2.3875665171637346, 2.3865650548667, 2.3855579908932745, 2.3845453273526247, 2.3835270663365935, 2.382503209919732, 2.381473760159328, 2.380438719095437, 2.379398088750904, 2.378351871131399, 2.3773000682254404, 2.376242682004426, 2.3751797144226576, 2.3741111674173707, 2.3730370429087597, ...], y_list=[4.390273847766317, 4.38908787237566, 4.387891596540316, 4.386685022881608, 4.385468153988724, 4.384240992418769, 4.383003540696784, 4.381755801315794, 4.380497776736837, 4.379229469388993, 4.37795088166943, 4.376662015943426, 4.375362874544409, 4.374053459773984, 4.372733773901967, 4.371403819166417, 4.370063597773666, 4.36871311189835, 4.367352363683437, 4.365981355240259, ...]) |
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.12969755, -0.13512232, -0.1405354 , ..., -0.11336027,
-0.11881584, -0.12426182]), y = array([-0.00153231, -0.01266935, -0.02380528, ..., 0.03187595,
0.02074124, 0.00960486]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.12969755, -0.13512232, -0.1405354 , ..., -0.11336027,
-0.11881584, -0.12426182]), array([-0.00153231, -0.01266935, -0.02380528, ..., 0.03187595,
0.02074124, 0.00960486])], 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.12969755, -0.13512232, -0.1405354 , ..., -0.11336027,
-0.11881584, -0.12426182]), array([-0.00153231, -0.01266935, -0.02380528, ..., 0.03187595,
0.02074124, 0.00960486])], 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.12969755, -0.13512232, -0.1405354 , .... 0.03187595,
0.02074124, -0.00153231]]), w=array([1., 1., 1., ..., 1., 1., 1.]), u=array([0. , 0.00106127, 0.00212203, ..., 0.99681403, 0.99787628,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=1737, 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.12969755, -0.13512232, -0.1405354 , .... 0.03187595,
0.02074124, -0.00153231]]), w = array([1., 1., 1., ..., 1., 1., 1.]), u = array([0. , 0.00106127, 0.00212203, ..., 0.99681403, 0.99787628,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 1737, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |