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.23113657344221294, -0.2283699273363129, -0.22558703522387072, -0.22278806831759138, -0.21997319650811073, -0.2171425891820224, -0.21429641435735436, -0.21143483931382276, -0.2085580305502861, -0.20566615386500983, -0.20275937443634057, -0.19983785690390823, -0.1969017654504639, -0.19395126388447714, -0.19098651572359762, -0.18800768427912193, -0.18501493274157416, -0.1820084242675469, -0.1789883220679256, -0.17595478949764465, ...], y_list = [0.03694546441662225, 0.03843692950163158, 0.03992566017437988, 0.04141154577923155, 0.042894475086407396, 0.04437433584919226, 0.04585101524762289, 0.047324399542122, 0.04879437408183502, 0.05026082324715019, 0.051723630391112316, 0.05318267777964322, 0.054637846530489115, 0.05608901655080179, 0.05753606647327218, 0.05897887359071058, 0.060417313788986834, 0.06185126147821771, 0.0632805895221035, 0.06470516916529567, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.23113657344221294, -0.2283699273363129, -0.22558703522387072, -0.22278806831759138, -0.21997319650811073, -0.2171425891820224, -0.21429641435735436, -0.21143483931382276, -0.2085580305502861, -0.20566615386500983, -0.20275937443634057, -0.19983785690390823, -0.1969017654504639, -0.19395126388447714, -0.19098651572359762, -0.18800768427912193, -0.18501493274157416, -0.1820084242675469, -0.1789883220679256, -0.17595478949764465, ...], y_list=[0.03694546441662225, 0.03843692950163158, 0.03992566017437988, 0.04141154577923155, 0.042894475086407396, 0.04437433584919226, 0.04585101524762289, 0.047324399542122, 0.04879437408183502, 0.05026082324715019, 0.051723630391112316, 0.05318267777964322, 0.054637846530489115, 0.05608901655080179, 0.05753606647327218, 0.05897887359071058, 0.060417313788986834, 0.06185126147821771, 0.0632805895221035, 0.06470516916529567, ...]) |
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.29448975, -0.29676834, -0.29902533, -0... , -0.28752676, -0.28986873,
-0.29218981]), y = array([-0.00091426, -0.00243903, -0.00396363, -0... , 0.00366002, 0.00213538,
0.00061058]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.29448975, -0.29676834, -0.29902533, -0... , -0.28752676, -0.28986873,
-0.29218981]), array([-0.00091426, -0.00243903, -0.00396363, -0... , 0.00366002, 0.00213538,
0.00061058])], 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.29448975, -0.29676834, -0.29902533, -0... , -0.28752676, -0.28986873,
-0.29218981]), array([-0.00091426, -0.00243903, -0.00396363, -0... , 0.00366002, 0.00213538,
0.00061058])], 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.29448975, -0.29676834, -0.29902533, -... 0.00366002, 0.00213538,
-0.00091426]]), 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.00219954, 0.00438463, 0.006...6055, 0.99331629, 0.99555821,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=307, 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.29448975, -0.29676834, -0.29902533, -... 0.00366002, 0.00213538,
-0.00091426]]), 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.00219954, 0.00438463, 0.006...6055, 0.99331629, 0.99555821,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 307, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |