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 = [-1.2635003766346071, -1.2571782559301008, -1.2507332496056978, -1.2441643085749872, -1.2374703667713531, -1.2306503408614282, -1.2237031299575518, -1.2166276153297482, -1.2094226601177696, -1.2020871090438294, -1.1946197881267364, -1.187019504398205, -1.179285045622204, -1.1714151800183321, -1.163408655990293, -1.1552642018606543, -1.146980525613254, -1.1385563146447037, -1.129990235526642, -1.121280933780548, ...], y_list = [-0.09756029933359774, -0.10634335453447892, -0.11511601291671598, -0.12387726237013436, -0.13262606372050176, -0.14136134971855963, -0.15008202398562553, -0.15878695991356556, -0.16747499951688966, -0.1761449522345599, -0.1847955936789585, -0.19342566432935268, -0.2020338681670273, -0.2106188712490999, -0.21917930021785392, -0.22771374074229664, -0.23622073588837278, -0.24469878441417695, -0.25314633898620953, -0.2615618043125337, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-1.2635003766346071, -1.2571782559301008, -1.2507332496056978, -1.2441643085749872, -1.2374703667713531, -1.2306503408614282, -1.2237031299575518, -1.2166276153297482, -1.2094226601177696, -1.2020871090438294, -1.1946197881267364, -1.187019504398205, -1.179285045622204, -1.1714151800183321, -1.163408655990293, -1.1552642018606543, -1.146980525613254, -1.1385563146447037, -1.129990235526642, -1.121280933780548, ...], y_list=[-0.09756029933359774, -0.10634335453447892, -0.11511601291671598, -0.12387726237013436, -0.13262606372050176, -0.14136134971855963, -0.15008202398562553, -0.15878695991356556, -0.16747499951688966, -0.1761449522345599, -0.1847955936789585, -0.19342566432935268, -0.2020338681670273, -0.2106188712490999, -0.21917930021785392, -0.22771374074229664, -0.23622073588837278, -0.24469878441417695, -0.25314633898620953, -0.2615618043125337, ...]) |
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([-1.32521714, -1.3201821 , -1.31503467, -1...8, -1.33965655, -1.33495352,
-1.33014066]), y = array([-5.25599837e-04, -9.36306434e-03, -1.8199....59841408e-02, 1.71487303e-02, 8.31191032e-03]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-1.32521714, -1.3201821 , -1.31503467, -1...8, -1.33965655, -1.33495352,
-1.33014066]), array([-5.25599837e-04, -9.36306434e-03, -1.8199....59841408e-02, 1.71487303e-02, 8.31191032e-03])], 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([-1.32521714, -1.3201821 , -1.31503467, -1...8, -1.33965655, -1.33495352,
-1.33014066]), array([-5.25599837e-04, -9.36306434e-03, -1.8199....59841408e-02, 1.71487303e-02, 8.31191032e-03])], 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([[-1.32521714e+00, -1.32018210e+00, -1.315...59841408e-02, 1.71487303e-02, -5.25599837e-04]]), 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.00171921, 0.00344779, 0.005...1448, 0.99489741, 0.99658924,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=477, 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([[-1.32521714e+00, -1.32018210e+00, -1.315...59841408e-02, 1.71487303e-02, -5.25599837e-04]]), 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.00171921, 0.00344779, 0.005...1448, 0.99489741, 0.99658924,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 477, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |