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.11304758658714917, -0.12896885572775993, -0.14467808240530966, -0.16013617632834015, -0.17529983023375847, -0.19012085286314964, -0.20454537692951757, -0.21851291454416094, -0.23195522592195938, -0.2447949589289512, -0.2569440069046792, -0.2683015199950413, -0.27875149104128033, -0.2881598215802828, -0.2963707587567945, -0.3032025847232088, -0.3084424466807602, -0.3118402589857962, -0.3131017296272526, -0.31188083929381405, ...], y_list = [-0.24625982808081806, -0.25292120183888245, -0.25916709310447034, -0.26496347525116976, -0.27027303251251383, -0.27505469963584, -0.2792631248111827, -0.2828480413201865, -0.2857535306122591, -0.28791715646766375, -0.2892689467229805, -0.28973019611789047, -0.2892120620130411, -0.2876139256691007, -0.28482149857370515, -0.2807046717072326, -0.27511514612628785, -0.2678839645994748, -0.25881921926571433, -0.24770449563492045, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.11304758658714917, -0.12896885572775993, -0.14467808240530966, -0.16013617632834015, -0.17529983023375847, -0.19012085286314964, -0.20454537692951757, -0.21851291454416094, -0.23195522592195938, -0.2447949589289512, -0.2569440069046792, -0.2683015199950413, -0.27875149104128033, -0.2881598215802828, -0.2963707587567945, -0.3032025847232088, -0.3084424466807602, -0.3118402589857962, -0.3131017296272526, -0.31188083929381405, ...], y_list=[-0.24625982808081806, -0.25292120183888245, -0.25916709310447034, -0.26496347525116976, -0.27027303251251383, -0.27505469963584, -0.2792631248111827, -0.2828480413201865, -0.2857535306122591, -0.28791715646766375, -0.2892689467229805, -0.28973019611789047, -0.2892120620130411, -0.2876139256691007, -0.28482149857370515, -0.2807046717072326, -0.27511514612628785, -0.2678839645994748, -0.25881921926571433, -0.24770449563492045, ...]) |
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.11224905, -0.15548741, -0.19356295, -0...6, 0.03446577, -0.01556867,
-0.0650606 ]), y = array([-0.02155479, -0.05792264, -0.09237661, -0...7, 0.08699938, 0.05214515,
0.0155667 ]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.11224905, -0.15548741, -0.19356295, -0...6, 0.03446577, -0.01556867,
-0.0650606 ]), array([-0.02155479, -0.05792264, -0.09237661, -0...7, 0.08699938, 0.05214515,
0.0155667 ])], 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.11224905, -0.15548741, -0.19356295, -0...6, 0.03446577, -0.01556867,
-0.0650606 ]), array([-0.02155479, -0.05792264, -0.09237661, -0...7, 0.08699938, 0.05214515,
0.0155667 ])], 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.11224905, -0.15548741, -0.19356295, -... 0.08699938, 0.05214515,
-0.02155479]]), 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.02661338, 0.05080122, 0.072...6906, 0.91401397, 0.94273676,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=117, 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.11224905, -0.15548741, -0.19356295, -... 0.08699938, 0.05214515,
-0.02155479]]), 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.02661338, 0.05080122, 0.072...6906, 0.91401397, 0.94273676,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 117, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |