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.12735257343112055, 0.128072412888786, 0.12878812743231677, 0.12949972080542263, 0.13020719665039904, 0.13091055850794192, 0.13160980981697856, 0.13230495391451383, 0.13299599403548917, 0.13368293331265443, 0.13436577477645142, 0.13504452135490597, 0.1357191758735308, 0.13638974105523524, 0.13705621952024236, 0.13771861378601263, 0.13837692626717246, 0.1390311592754476, 0.13968131501959985, 0.14032739560536736, ...], y_list = [1.3162435580721301, 1.3162899822063445, 1.3162940114484252, 1.3162559195386108, 1.3161759761681742, 1.3160544470587403, 1.315891594039588, 1.3156876751229947, 1.315442944577685, 1.315157653000443, 1.3148320473859394, 1.3144663711948354, 1.3140608644202048, 1.3136157636523362, 1.3131313021419535, 1.3126077098619071, 1.3120452135673795, 1.3114440368546503, 1.3108044002184571, 1.3101265211080044, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.12735257343112055, 0.128072412888786, 0.12878812743231677, 0.12949972080542263, 0.13020719665039904, 0.13091055850794192, 0.13160980981697856, 0.13230495391451383, 0.13299599403548917, 0.13368293331265443, 0.13436577477645142, 0.13504452135490597, 0.1357191758735308, 0.13638974105523524, 0.13705621952024236, 0.13771861378601263, 0.13837692626717246, 0.1390311592754476, 0.13968131501959985, 0.14032739560536736, ...], y_list=[1.3162435580721301, 1.3162899822063445, 1.3162940114484252, 1.3162559195386108, 1.3161759761681742, 1.3160544470587403, 1.315891594039588, 1.3156876751229947, 1.315442944577685, 1.315157653000443, 1.3148320473859394, 1.3144663711948354, 1.3140608644202048, 1.3136157636523362, 1.3131313021419535, 1.3126077098619071, 1.3120452135673795, 1.3114440368546503, 1.3108044002184571, 1.3101265211080044, ...]) |
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.02967419, -0.02826842, -0.02654909, -0...9,
-0.03217011, -0.03160266, -0.03077889]), y = array([-2.40669557e-02, -5.46009804e-02, -8.4524....78727350e-02, 3.74440126e-02, 6.71654816e-03]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.02967419, -0.02826842, -0.02654909, -0...9,
-0.03217011, -0.03160266, -0.03077889]), array([-2.40669557e-02, -5.46009804e-02, -8.4524....78727350e-02, 3.74440126e-02, 6.71654816e-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([-0.02967419, -0.02826842, -0.02654909, -0...9,
-0.03217011, -0.03160266, -0.03077889]), array([-2.40669557e-02, -5.46009804e-02, -8.4524....78727350e-02, 3.74440126e-02, 6.71654816e-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([[-0.02967419, -0.02826842, -0.02654909, .... 0.06787273,
0.03744401, -0.02406696]]), 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.00913824, 0.01809905, 0.026...4877,
0.97250272, 0.9816014 , 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=549, 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.02967419, -0.02826842, -0.02654909, .... 0.06787273,
0.03744401, -0.02406696]]), 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.00913824, 0.01809905, 0.026...4877,
0.97250272, 0.9816014 , 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 549, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |