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.13456301210465252, -0.14505208212327686, -0.15539163609171572, -0.1655703859155188, -0.17557696272402326, -0.1853998969576799, -0.19502759981109857, -0.20444834339953824, -0.2136502412796833, -0.22262122870513193, -0.23134904267558037, -0.23982120175840999, -0.24802498566942435, -0.2559474146090987, -0.26357522836231223, -0.2708948651835506, -0.2778924405065185, -0.2845537255376379, -0.2908641258177879, -0.2968086598667349, ...], y_list = [-0.28069591021129253, -0.28193159981505334, -0.28287669277896615, -0.28352906967598934, -0.28388662616173516, -0.2839472723587754, -0.28370893299033056, -0.2831695481815585, -0.2823270750532386, -0.28117949013501664, -0.27972479266977895, -0.27796100888892133, -0.2758861973522142, -0.2734984554615095, -0.2707959272749395, -0.26777681276779336, -0.2644393787082389, -0.26078197134082437, -0.2568030310986168, -0.25250110959635, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.13456301210465252, -0.14505208212327686, -0.15539163609171572, -0.1655703859155188, -0.17557696272402326, -0.1853998969576799, -0.19502759981109857, -0.20444834339953824, -0.2136502412796833, -0.22262122870513193, -0.23134904267558037, -0.23982120175840999, -0.24802498566942435, -0.2559474146090987, -0.26357522836231223, -0.2708948651835506, -0.2778924405065185, -0.2845537255376379, -0.2908641258177879, -0.2968086598667349, ...], y_list=[-0.28069591021129253, -0.28193159981505334, -0.28287669277896615, -0.28352906967598934, -0.28388662616173516, -0.2839472723587754, -0.28370893299033056, -0.2831695481815585, -0.2823270750532386, -0.28117949013501664, -0.27972479266977895, -0.27796100888892133, -0.2758861973522142, -0.2734984554615095, -0.2707959272749395, -0.26777681276779336, -0.2644393787082389, -0.26078197134082437, -0.2568030310986168, -0.25250110959635, ...]) |
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.23994713, -0.25196677, -0.26309091, -0...9,
-0.19851791, -0.21321629, -0.2270293 ]), y = array([-0.00704531, -0.01897056, -0.03082873, -0...8,
0.02869853, 0.01683743, 0.00490594]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.23994713, -0.25196677, -0.26309091, -0...9,
-0.19851791, -0.21321629, -0.2270293 ]), array([-0.00704531, -0.01897056, -0.03082873, -0...8,
0.02869853, 0.01683743, 0.00490594])], 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.23994713, -0.25196677, -0.26309091, -0...9,
-0.19851791, -0.21321629, -0.2270293 ]), array([-0.00704531, -0.01897056, -0.03082873, -0...8,
0.02869853, 0.01683743, 0.00490594])], 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.23994713, -0.25196677, -0.26309091, -...
0.02869853, 0.01683743, -0.00704531]]), 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.01029132, 0.02017389, 0.029...8385,
0.96673254, 0.97821245, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=139, 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.23994713, -0.25196677, -0.26309091, -...
0.02869853, 0.01683743, -0.00704531]]), 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.01029132, 0.02017389, 0.029...8385,
0.96673254, 0.97821245, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 139, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |