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.2877304610928135, 0.2895082853780359, 0.2912611118691169, 0.29298840812229493, 0.2946896270566567, 0.29636420637069655, 0.29801156792990635, 0.299631117123622, 0.30122224218928156, 0.30278431350204305, 0.30431668282763213, 0.30581868253609235, 0.3072896247739519, 0.3087288005921319, 0.3101354790267211, 0.31150890612953136, 0.31284830394509033, 0.3141528694304845, 0.31542177331418764, 0.3166541588896751, ...], y_list = [-0.1405707401802067, -0.13932033924241966, -0.13805790904522616, -0.13678337796662193, -0.13549667301287152, -0.13419771979660225, -0.13288644251488066, -0.13156276392733746, -0.13022660533439906, -0.1288778865557101, -0.12751652590882687, -0.1261424401882815, -0.12475554464512537, -0.12335575296707697, -0.12194297725941435, -0.12051712802676644, -0.1190781141559858, -0.11762584290030027, -0.1161602198649672, -0.11468114899468891, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.2877304610928135, 0.2895082853780359, 0.2912611118691169, 0.29298840812229493, 0.2946896270566567, 0.29636420637069655, 0.29801156792990635, 0.299631117123622, 0.30122224218928156, 0.30278431350204305, 0.30431668282763213, 0.30581868253609235, 0.3072896247739519, 0.3087288005921319, 0.3101354790267211, 0.31150890612953136, 0.31284830394509033, 0.3141528694304845, 0.31542177331418764, 0.3166541588896751, ...], y_list=[-0.1405707401802067, -0.13932033924241966, -0.13805790904522616, -0.13678337796662193, -0.13549667301287152, -0.13419771979660225, -0.13288644251488066, -0.13156276392733746, -0.13022660533439906, -0.1288778865557101, -0.12751652590882687, -0.1261424401882815, -0.12475554464512537, -0.12335575296707697, -0.12194297725941435, -0.12051712802676644, -0.1190781141559858, -0.11762584290030027, -0.1161602198649672, -0.11468114899468891, ...]) |
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.99441353e-01, -2.08271897e-01, -2.1653...24e-01, -1.79933557e-01,
-1.90008872e-01]), y = array([-2.45158870e-03, -5.61570723e-03, -8.7648...07e-03, 3.88845486e-03,
7.19755480e-04]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-1.99441353e-01, -2.08271897e-01, -2.1653...24e-01, -1.79933557e-01,
-1.90008872e-01]), array([-2.45158870e-03, -5.61570723e-03, -8.7648...07e-03, 3.88845486e-03,
7.19755480e-04])], 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.99441353e-01, -2.08271897e-01, -2.1653...24e-01, -1.79933557e-01,
-1.90008872e-01]), array([-2.45158870e-03, -5.61570723e-03, -8.7648...07e-03, 3.88845486e-03,
7.19755480e-04])], 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.99441353e-01, -2.08271897e-01, -2.165...e-03, 3.88845486e-03,
-2.45158870e-03]]), 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.00627871, 0.01220073, 0.017...9883, 0.97876521, 0.98627016,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=427, 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.99441353e-01, -2.08271897e-01, -2.165...e-03, 3.88845486e-03,
-2.45158870e-03]]), 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.00627871, 0.01220073, 0.017...9883, 0.97876521, 0.98627016,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 427, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |