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.1582454734963571, -0.1572762757705437, -0.15621699448569962, -0.1550687501340156, -0.15383263368512293, -0.15250970838500721, -0.15110101134418558, -0.14960755533573494, -0.14803033042902097, -0.14637030566126968, -0.144628430706638, -0.14280563755015072, -0.1409028421748459, -0.13892094627143778, -0.1368608389807454, -0.13472339855344542, -0.13250949445236818, -0.1302199889070368, -0.12785573902337233, -0.12541759876531078, ...], y_list = [-0.2988445960047733, -0.2996396166711486, -0.3002630134946639, -0.30071541671209645, -0.3009974160872411, -0.3011095613835015, -0.3010523628895121, -0.30082629192472776, -0.30043178139402354, -0.29986922635079916, -0.29913898458156396, -0.29824137721254834, -0.2971766893408593, -0.2959451706946781, -0.29454703632895324, -0.29298246726908617, -0.29125161148347206, -0.28935458447373247, -0.2872914702696629, -0.28506232234505685, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.1582454734963571, -0.1572762757705437, -0.15621699448569962, -0.1550687501340156, -0.15383263368512293, -0.15250970838500721, -0.15110101134418558, -0.14960755533573494, -0.14803033042902097, -0.14637030566126968, -0.144628430706638, -0.14280563755015072, -0.1409028421748459, -0.13892094627143778, -0.1368608389807454, -0.13472339855344542, -0.13250949445236818, -0.1302199889070368, -0.12785573902337233, -0.12541759876531078, ...], y_list=[-0.2988445960047733, -0.2996396166711486, -0.3002630134946639, -0.30071541671209645, -0.3009974160872411, -0.3011095613835015, -0.3010523628895121, -0.30082629192472776, -0.30043178139402354, -0.29986922635079916, -0.29913898458156396, -0.29824137721254834, -0.2971766893408593, -0.2959451706946781, -0.29454703632895324, -0.29298246726908617, -0.29125161148347206, -0.28935458447373247, -0.2872914702696629, -0.28506232234505685, ...]) |
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.04595419, -0.05224505, -0.05834645, -0...2, -0.02604319, -0.03283977,
-0.03948195]), y = array([-0.00889416, -0.01914735, -0.02933151, -0... , 0.02190009, 0.01167475,
0.00139363]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.04595419, -0.05224505, -0.05834645, -0...2, -0.02604319, -0.03283977,
-0.03948195]), array([-0.00889416, -0.01914735, -0.02933151, -0... , 0.02190009, 0.01167475,
0.00139363])], 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.04595419, -0.05224505, -0.05834645, -0...2, -0.02604319, -0.03283977,
-0.03948195]), array([-0.00889416, -0.01914735, -0.02933151, -0... , 0.02190009, 0.01167475,
0.00139363])], 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.04595419, -0.05224505, -0.05834645, -... 0.02190009, 0.01167475,
-0.00889416]]), 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.01238347, 0.02460504, 0.036...2847, 0.96224806, 0.97488768,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=157, 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.04595419, -0.05224505, -0.05834645, -... 0.02190009, 0.01167475,
-0.00889416]]), 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.01238347, 0.02460504, 0.036...2847, 0.96224806, 0.97488768,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 157, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |