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.12575101113134285, 0.12026630154443572, 0.11476427710417818, 0.10924574886740221, 0.10371152707910887, 0.0981624212605154, 0.09259924029754274, 0.08702279252971588, 0.08143388583946516, 0.07583332774180267, 0.0702219254743657, 0.06460048608780501, 0.05896981653650089, 0.05333072376960137, 0.04768401482235662, 0.04203049691715872, 0.03637097750836304, 0.03070626446859947, 0.02503716608702612, 0.019364491209043534, ...], y_list = [0.472026314236058, 0.47156728927394737, 0.47104037292548706, 0.47044571871001817, 0.4697834838113849, 0.4690538290672378, 0.4682569189611774, 0.4673929216177099, 0.4664620087999956, 0.46546435591036495, 0.464400141993588, 0.4632695497428769, 0.46207276550860754, 0.4608099793097485, 0.45948138484798334, 0.45808717952689526, 0.4566275644595777, 0.45510274451454474, 0.45351292831680795, 0.4518583282872446, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.12575101113134285, 0.12026630154443572, 0.11476427710417818, 0.10924574886740221, 0.10371152707910887, 0.0981624212605154, 0.09259924029754274, 0.08702279252971588, 0.08143388583946516, 0.07583332774180267, 0.0702219254743657, 0.06460048608780501, 0.05896981653650089, 0.05333072376960137, 0.04768401482235662, 0.04203049691715872, 0.03637097750836304, 0.03070626446859947, 0.02503716608702612, 0.019364491209043534, ...], y_list=[0.472026314236058, 0.47156728927394737, 0.47104037292548706, 0.47044571871001817, 0.4697834838113849, 0.4690538290672378, 0.4682569189611774, 0.4673929216177099, 0.4664620087999956, 0.46546435591036495, 0.464400141993588, 0.4632695497428769, 0.46207276550860754, 0.4608099793097485, 0.45948138484798334, 0.45808717952689526, 0.4566275644595777, 0.45510274451454474, 0.45351292831680795, 0.4518583282872446, ...]) |
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.42127522, -0.42225536, -0.42313476, -0...6, -0.41774177, -0.41901726,
-0.42019546]), y = array([-0.00431953, -0.01033792, -0.01635384, -0... , 0.01373613, 0.0077189 ,
0.00169989]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.42127522, -0.42225536, -0.42313476, -0...6, -0.41774177, -0.41901726,
-0.42019546]), array([-0.00431953, -0.01033792, -0.01635384, -0... , 0.01373613, 0.0077189 ,
0.00169989])], 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.42127522, -0.42225536, -0.42313476, -0...6, -0.41774177, -0.41901726,
-0.42019546]), array([-0.00431953, -0.01033792, -0.01635384, -0... , 0.01373613, 0.0077189 ,
0.00169989])], 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.42127522, -0.42225536, -0.42313476, -... 0.01373613, 0.0077189 ,
-0.00431953]]), 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.00235458, 0.00470228, 0.007...1331, 0.99289524, 0.99527038,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=407, 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.42127522, -0.42225536, -0.42313476, -... 0.01373613, 0.0077189 ,
-0.00431953]]), 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.00235458, 0.00470228, 0.007...1331, 0.99289524, 0.99527038,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 407, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |