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> |
956
|
957 # Smooth curve if necessary
|
=> 958 xa_smooth, ya_smooth = Q_get_smoothed_orbit(xa_list, ya_list)
|
959 plt.plot(xa_smooth, ya_smooth, label=f'Orbit of {wds}', color='#528B8B')
|
960
|
| xa_smooth undefined, ya_smooth undefined, Q_get_smoothed_orbit = <function Q_get_smoothed_orbit>, xa_list = [0.32452259435504716, 0.3214243911143498, 0.3181631986869775, 0.3147430282533352, 0.3111678060638341, 0.30744137675185157, 0.30356750659754106, 0.29954988673900934, 0.29539213632841227, 0.2910978056314284, 0.28667037906932513, 0.28211327820348947, 0.2774298646628559, 0.2726234430151413, 0.2676972635831951, 0.2626545252081274, 0.25749837796116065, 0.2522319258064108, 0.24685822921700526, 0.24138030774712949, ...], ya_list = [0.1507411440031126, 0.15039172221923133, 0.14996604058287993, 0.1494654260932287, 0.14889118178536387, 0.14824458737546667, 0.1475268999274431, 0.14673935453676945, 0.14588316502793075, 0.14495952466237738, 0.1439696068544019, 0.1429145658927589, 0.14179553766622835, 0.14061364039164995, 0.13936997534324702, 0.13806562758231916, 0.13670166668660985, 0.13527914747886072, 0.13379911075424336, 0.13226258400652335, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.32452259435504716, 0.3214243911143498, 0.3181631986869775, 0.3147430282533352, 0.3111678060638341, 0.30744137675185157, 0.30356750659754106, 0.29954988673900934, 0.29539213632841227, 0.2910978056314284, 0.28667037906932513, 0.28211327820348947, 0.2774298646628559, 0.2726234430151413, 0.2676972635831951, 0.2626545252081274, 0.25749837796116065, 0.2522319258064108, 0.24685822921700526, 0.24138030774712949, ...], y_list=[0.1507411440031126, 0.15039172221923133, 0.14996604058287993, 0.1494654260932287, 0.14889118178536387, 0.14824458737546667, 0.1475268999274431, 0.14673935453676945, 0.14588316502793075, 0.14495952466237738, 0.1439696068544019, 0.1429145658927589, 0.14179553766622835, 0.14061364039164995, 0.13936997534324702, 0.13806562758231916, 0.13670166668660985, 0.13527914747886072, 0.13379911075424336, 0.13226258400652335, ...]) |
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.11691977, -0.12377416, -0.13056005, -0...3, -0.09599407, -0.10302502,
-0.1100018 ]), y = array([-0.00162058, -0.00474013, -0.00785706, -0...3, 0.00773672, 0.0046195 ,
0.00149986]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.11691977, -0.12377416, -0.13056005, -0...3, -0.09599407, -0.10302502,
-0.1100018 ]), array([-0.00162058, -0.00474013, -0.00785706, -0...3, 0.00773672, 0.0046195 ,
0.00149986])], 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.11691977, -0.12377416, -0.13056005, -0...3, -0.09599407, -0.10302502,
-0.1100018 ]), array([-0.00162058, -0.00474013, -0.00785706, -0...3, 0.00773672, 0.0046195 ,
0.00149986])], 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.11691977, -0.12377416, -0.13056005, -... 0.00773672, 0.0046195 ,
-0.00162058]]), 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.00558073, 0.01111448, 0.016...8145, 0.9830133 , 0.98871267,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=207, 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.11691977, -0.12377416, -0.13056005, -... 0.00773672, 0.0046195 ,
-0.00162058]]), 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.00558073, 0.01111448, 0.016...8145, 0.9830133 , 0.98871267,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 207, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |