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> |
956
|
957 # Smooth curve if necessary
|
=> 958 xa_smooth, ya_smooth = Q_get_smoothed_orbit(xa_list, ya_list)
|
959 plt.plot(xa_smooth, ya_smooth, label=f'Orbit of {wds}', color='#528B8B')
|
960
|
| xa_smooth undefined, ya_smooth undefined, Q_get_smoothed_orbit = <function Q_get_smoothed_orbit>, xa_list = [0.13181125436883706, 0.11658290282841867, 0.10017030515137085, 0.08284658776323282, 0.0648308099505885, 0.046306466537455286, 0.027434071746017263, 0.008360395512946161, -0.010774104803192037, -0.02982860466194708, -0.04865512002560879, -0.06709070274744845, -0.08494745107635605, -0.10199852600023837, -0.11795703926282451, -0.13244187603575772, -0.14491818956905034, -0.1545846176089372, -0.16013501607772393, -0.15917329138068015, ...], ya_list = [0.09058067808340284, 0.10348480268048825, 0.11534328023638314, 0.12615714387455235, 0.1359209457640496, 0.1446217604506852, 0.15223829726789354, 0.1587398546167736, 0.1640849269018579, 0.16821927398025088, 0.1710732065836481, 0.17255772135075614, 0.17255890196598514, 0.17092960899827853, 0.167476738900581, 0.1619408517945413, 0.1539617896818354, 0.1430164303344896, 0.128294922345037, 0.10842028453925168, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.13181125436883706, 0.11658290282841867, 0.10017030515137085, 0.08284658776323282, 0.0648308099505885, 0.046306466537455286, 0.027434071746017263, 0.008360395512946161, -0.010774104803192037, -0.02982860466194708, -0.04865512002560879, -0.06709070274744845, -0.08494745107635605, -0.10199852600023837, -0.11795703926282451, -0.13244187603575772, -0.14491818956905034, -0.1545846176089372, -0.16013501607772393, -0.15917329138068015, ...], y_list=[0.09058067808340284, 0.10348480268048825, 0.11534328023638314, 0.12615714387455235, 0.1359209457640496, 0.1446217604506852, 0.15223829726789354, 0.1587398546167736, 0.1640849269018579, 0.16821927398025088, 0.1710732065836481, 0.17255772135075614, 0.17255890196598514, 0.17092960899827853, 0.167476738900581, 0.1619408517945413, 0.1539617896818354, 0.1430164303344896, 0.128294922345037, 0.10842028453925168, ...]) |
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.03588371, 0.12999943, 0.16008865, 0...2, -0.15917329, -0.14640391,
-0.10522745]), y = array([-0.02531663, -0.02521116, -0.00810035, 0...2, 0.10842028, 0.08067772,
0.03817303]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([ 0.03588371, 0.12999943, 0.16008865, 0...2, -0.15917329, -0.14640391,
-0.10522745]), array([-0.02531663, -0.02521116, -0.00810035, 0...2, 0.10842028, 0.08067772,
0.03817303])], 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.03588371, 0.12999943, 0.16008865, 0...2, -0.15917329, -0.14640391,
-0.10522745]), array([-0.02531663, -0.02521116, -0.00810035, 0...2, 0.10842028, 0.08067772,
0.03817303])], 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.03588371, 0.12999943, 0.16008865, ... 0.10842028, 0.08067772,
-0.02531663]]), 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.11271185, 0.15416533, 0.179...6802, 0.71089748, 0.7474721 ,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=37, 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.03588371, 0.12999943, 0.16008865, ... 0.10842028, 0.08067772,
-0.02531663]]), 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.11271185, 0.15416533, 0.179...6802, 0.71089748, 0.7474721 ,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 37, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |