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.3815768587182693, 1.3824307479299225, 1.3832540682498737, 1.3840468378610222, 1.3848090741565446, 1.3855407937422302, 1.386242012438707, 1.38691274528356, 1.3875530065333455, 1.388162809665496, 1.3887421673801246, 1.3892910916363543, 1.3898095935013386, 1.3902976834069176, 1.39075537095807, 1.3911826649904409, 1.3915795735713838, 1.391946104000931, 1.392282262812686, 1.3925880557746353, ...], y_list = [0.30518539333311295, 0.3092299228505824, 0.313267614562834, 0.3172983874269771, 0.32132216041970046, 0.3253388525271469, 0.32934838273481637, 0.3333506700175178, 0.33734563332935336, 0.341333191593758, 0.3453132636935396, 0.349285768718522, 0.35325062483003994, 0.35720775111472075, 0.3611570661844305, 0.36509848856351185, 0.36903193667845635, 0.37295732884767, 0.3768745832713178, 0.3807836180212268, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[1.3815768587182693, 1.3824307479299225, 1.3832540682498737, 1.3840468378610222, 1.3848090741565446, 1.3855407937422302, 1.386242012438707, 1.38691274528356, 1.3875530065333455, 1.388162809665496, 1.3887421673801246, 1.3892910916363543, 1.3898095935013386, 1.3902976834069176, 1.39075537095807, 1.3911826649904409, 1.3915795735713838, 1.391946104000931, 1.392282262812686, 1.3925880557746353, ...], y_list=[0.30518539333311295, 0.3092299228505824, 0.313267614562834, 0.3172983874269771, 0.32132216041970046, 0.3253388525271469, 0.32934838273481637, 0.3333506700175178, 0.33734563332935336, 0.341333191593758, 0.3453132636935396, 0.349285768718522, 0.35325062483003994, 0.35720775111472075, 0.3611570661844305, 0.36509848856351185, 0.36903193667845635, 0.37295732884767, 0.3768745832713178, 0.3807836180212268, ...]) |
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([-2.23835178e-01, -2.26614685e-01, -2.2829....09352539e-01, -2.15147585e-01, -2.19995755e-01]), y = array([-0.00366328, -0.02748963, -0.0511825 , -0...09077105, 0.06749313, 0.0439333 , 0.02018094]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-2.23835178e-01, -2.26614685e-01, -2.2829....09352539e-01, -2.15147585e-01, -2.19995755e-01]), array([-0.00366328, -0.02748963, -0.0511825 , -0...09077105, 0.06749313, 0.0439333 , 0.02018094])], 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([-2.23835178e-01, -2.26614685e-01, -2.2829....09352539e-01, -2.15147585e-01, -2.19995755e-01]), array([-0.00366328, -0.02748963, -0.0511825 , -0...09077105, 0.06749313, 0.0439333 , 0.02018094])], 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.22383518, -0.22661468, -0.2282966 , .... 0.06749313,
0.0439333 , -0.00366328]]), w=array([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.00518155, 0.01031225, 0.015... 0.97907752, 0.9843082 , 0.98954896, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=605, 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.22383518, -0.22661468, -0.2282966 , .... 0.06749313,
0.0439333 , -0.00366328]]), w = array([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.00518155, 0.01031225, 0.015... 0.97907752, 0.9843082 , 0.98954896, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 605, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |