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 = [2.19225612793221, 2.189026481481746, 2.1853294593473325, 2.1811658508744913, 2.176536545028877, 2.1714425302064733, 2.1658848940225663, 2.1598648230795274, 2.153383602713462, 2.146442616719783, 2.139043347057755, 2.131187373534086, 2.1228763734656235, 2.114112121321236, 2.104896488342945, 2.0952314421464022, 2.0851190463007865, 2.0745614598882107, 2.0635609370427455, 2.052119826469137, ...], y_list = [-1.3285361349295486, -1.2924850560166579, -1.2561580206033967, -1.2195627848193333, -1.182707162057089, -1.1455990213041047, -1.1082462854625548, -1.0706569296577322, -1.0328389795352928, -0.9948005095477238, -0.9565496412303578, -0.91809454146738, -0.879443420748108, -0.8406045314140006, -0.8015861658967022, -0.7623966549475418, -0.72304436585885, -0.6835377006774599, -0.6438850944108174, -0.6040950132260154, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[2.19225612793221, 2.189026481481746, 2.1853294593473325, 2.1811658508744913, 2.176536545028877, 2.1714425302064733, 2.1658848940225663, 2.1598648230795274, 2.153383602713462, 2.146442616719783, 2.139043347057755, 2.131187373534086, 2.1228763734656235, 2.114112121321236, 2.104896488342945, 2.0952314421464022, 2.0851190463007865, 2.0745614598882107, 2.0635609370427455, 2.052119826469137, ...], y_list=[-1.3285361349295486, -1.2924850560166579, -1.2561580206033967, -1.2195627848193333, -1.182707162057089, -1.1455990213041047, -1.1082462854625548, -1.0706569296577322, -1.0328389795352928, -0.9948005095477238, -0.9565496412303578, -0.91809454146738, -0.879443420748108, -0.8406045314140006, -0.8015861658967022, -0.7623966549475418, -0.72304436585885, -0.6835377006774599, -0.6438850944108174, -0.6040950132260154, ...]) |
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.82951278, -1.81141668, -1.79293383, -1...1, -1.88144232, -1.86452934,
-1.84721825]), y = array([-0.00342202, -0.04424195, -0.08505242, -0...3, 0.11900727, 0.0782113 ,
0.03739863]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-1.82951278, -1.81141668, -1.79293383, -1...1, -1.88144232, -1.86452934,
-1.84721825]), array([-0.00342202, -0.04424195, -0.08505242, -0...3, 0.11900727, 0.0782113 ,
0.03739863])], 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.82951278, -1.81141668, -1.79293383, -1...1, -1.88144232, -1.86452934,
-1.84721825]), array([-0.00342202, -0.04424195, -0.08505242, -0...3, 0.11900727, 0.0782113 ,
0.03739863])], 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.82951278, -1.81141668, -1.79293383, -... 0.11900727, 0.0782113 ,
-0.00342202]]), 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.00289406, 0.00579782, 0.008...293 , 0.99138031, 0.99424272,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=437, 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.82951278, -1.81141668, -1.79293383, -... 0.11900727, 0.0782113 ,
-0.00342202]]), 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.00289406, 0.00579782, 0.008...293 , 0.99138031, 0.99424272,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 437, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |