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.3592940358782253, -0.37848234699413014, -0.39743577037623623, -0.4161411884744875, -0.4345853126470244, -0.4527546631292696, -0.47063554812810493, -0.48821404235485233, -0.5054759649287724, -0.5224068565810388, -0.5389919560873271, -0.555216175855179, -0.5710640765903557, -0.5865198409643971, -0.6015672462038045, -0.6161896355195828, -0.6303698882945753, -0.6440903889451874, -0.6573329943739491, -0.6700789999300948, ...], y_list = [-0.3887443176263377, -0.38547102558224255, -0.38195852112481116, -0.37820768259035015, -0.3742193827351163, -0.3699944918219525, -0.36553388104041656, -0.3608384262246028, -0.35590901189830026, -0.35074653568079184, -0.34535191309063995, -0.3397260827893238, -0.33387001231162144, -0.3277847043352716, -0.3214712035487453, -0.31493060418304636, -0.3081640582814052, -0.30117278478968035, -0.2939580795603473, -0.2865213263743107, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.3592940358782253, -0.37848234699413014, -0.39743577037623623, -0.4161411884744875, -0.4345853126470244, -0.4527546631292696, -0.47063554812810493, -0.48821404235485233, -0.5054759649287724, -0.5224068565810388, -0.5389919560873271, -0.555216175855179, -0.5710640765903557, -0.5865198409643971, -0.6015672462038045, -0.6161896355195828, -0.6303698882945753, -0.6440903889451874, -0.6573329943739491, -0.6700789999300948, ...], y_list=[-0.3887443176263377, -0.38547102558224255, -0.38195852112481116, -0.37820768259035015, -0.3742193827351163, -0.3699944918219525, -0.36553388104041656, -0.3608384262246028, -0.35590901189830026, -0.35074653568079184, -0.34535191309063995, -0.3397260827893238, -0.33387001231162144, -0.3277847043352716, -0.3214712035487453, -0.31493060418304636, -0.3081640582814052, -0.30117278478968035, -0.2939580795603473, -0.2865213263743107, ...]) |
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.72311193, -0.73551646, -0.74649497, -0...8, -0.67682312,
-0.69381742, -0.70922964]), y = array([-0.00090097, -0.01285572, -0.02478575, -0...5, 0.0348673 ,
0.02298769, 0.0110554 ]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.72311193, -0.73551646, -0.74649497, -0...8, -0.67682312,
-0.69381742, -0.70922964]), array([-0.00090097, -0.01285572, -0.02478575, -0...5, 0.0348673 ,
0.02298769, 0.0110554 ])], 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.72311193, -0.73551646, -0.74649497, -0...8, -0.67682312,
-0.69381742, -0.70922964]), array([-0.00090097, -0.01285572, -0.02478575, -0...5, 0.0348673 ,
0.02298769, 0.0110554 ])], 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.72311193, -0.73551646, -0.74649497, -... 0.0348673 ,
0.02298769, -0.00090097]]), 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.0051485 , 0.00999372, 0.014...1758, 0.98250675,
0.98870339, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=163, 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.72311193, -0.73551646, -0.74649497, -... 0.0348673 ,
0.02298769, -0.00090097]]), 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.0051485 , 0.00999372, 0.014...1758, 0.98250675,
0.98870339, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 163, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |