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.10360403161697003, -0.10210738159797463, -0.09954947566274693, -0.09598880452105191, -0.09148072834018019, -0.08607841199678462, -0.07983386215650175, -0.07279909925504524, -0.06502752268216999, -0.05657555379816578, -0.047504679851820455, -0.03788407157205134, -0.027794021264651185, -0.017330553730555406, -0.0066117126250754615, 0.004213769866469106, 0.014954457246688252, 0.025359649857336915, 0.035097124529802536, 0.043725100605453544, ...], y_list = [-0.026275972236815787, -0.03462619243270686, -0.04261709198476952, -0.05017910206526061, -0.05724607852647116, -0.0637535331427554, -0.06963708229952394, -0.07483102851323888, -0.07926700764637565, -0.08287265115204231, -0.08557022585774172, -0.08727523438805518, -0.08789499072868083, -0.08732724464003243, -0.08545904184078576, -0.0821662261361714, -0.07731441375610472, -0.07076308083406867, -0.062375917815594616, -0.052043261518594515, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.10360403161697003, -0.10210738159797463, -0.09954947566274693, -0.09598880452105191, -0.09148072834018019, -0.08607841199678462, -0.07983386215650175, -0.07279909925504524, -0.06502752268216999, -0.05657555379816578, -0.047504679851820455, -0.03788407157205134, -0.027794021264651185, -0.017330553730555406, -0.0066117126250754615, 0.004213769866469106, 0.014954457246688252, 0.025359649857336915, 0.035097124529802536, 0.043725100605453544, ...], y_list=[-0.026275972236815787, -0.03462619243270686, -0.04261709198476952, -0.05017910206526061, -0.05724607852647116, -0.0637535331427554, -0.06963708229952394, -0.07483102851323888, -0.07926700764637565, -0.08287265115204231, -0.08557022585774172, -0.08727523438805518, -0.08789499072868083, -0.08732724464003243, -0.08545904184078576, -0.0821662261361714, -0.07731441375610472, -0.07076308083406867, -0.062375917815594616, -0.052043261518594515, ...]) |
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.10315902, -0.10397696, -0.10360403, -0...8, -0.09280956, -0.09765556,
-0.10107781]), y = array([-0.00880603, -0.01764152, -0.02627597, -0...7, 0.01787833, 0.00907446,
0.00013598]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.10315902, -0.10397696, -0.10360403, -0...8, -0.09280956, -0.09765556,
-0.10107781]), array([-0.00880603, -0.01764152, -0.02627597, -0...7, 0.01787833, 0.00907446,
0.00013598])], 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.10315902, -0.10397696, -0.10360403, -0...8, -0.09280956, -0.09765556,
-0.10107781]), array([-0.00880603, -0.01764152, -0.02627597, -0...7, 0.01787833, 0.00907446,
0.00013598])], 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.10315902, -0.10397696, -0.10360403, -... 0.01787833, 0.00907446,
-0.00880603]]), 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.01857198, 0.03666095, 0.036...7849, 0.93980929, 0.96084309,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=47, 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.10315902, -0.10397696, -0.10360403, -... 0.01787833, 0.00907446,
-0.00880603]]), 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.01857198, 0.03666095, 0.036...7849, 0.93980929, 0.96084309,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 47, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |