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.002795674796196842, 0.026205193833272147, 0.04921200295037689, 0.07143702597104044, 0.09247772162508697, 0.11190429147454148, 0.12925679222855366, 0.14404405337806347, 0.15574583584941798, 0.1638204123745086, 0.1677206777946726, 0.16692281197926465, 0.16097187179149677, 0.14954736549681663, 0.13254718095999407, 0.11017877246419717, 0.08303339534972096, 0.05210909930541823, 0.01875278429797193, -0.01548189623088249, ...], y_list = [-0.15280035676254963, -0.1586492104514131, -0.16207058212450626, -0.16292475261872097, -0.16108440799595988, -0.15643875161374832, -0.14889996236391978, -0.138412731221582, -0.12496775999768817, -0.10862015432693252, -0.08951341255748667, -0.06790889264272902, -0.04421877261807678, -0.01903714070425786, 0.0068410215962155276, 0.032428071070148404, 0.056595171847732856, 0.07817446320390004, 0.09609927450414757, 0.10954633204133304, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.002795674796196842, 0.026205193833272147, 0.04921200295037689, 0.07143702597104044, 0.09247772162508697, 0.11190429147454148, 0.12925679222855366, 0.14404405337806347, 0.15574583584941798, 0.1638204123745086, 0.1677206777946726, 0.16692281197926465, 0.16097187179149677, 0.14954736549681663, 0.13254718095999407, 0.11017877246419717, 0.08303339534972096, 0.05210909930541823, 0.01875278429797193, -0.01548189623088249, ...], y_list=[-0.15280035676254963, -0.1586492104514131, -0.16207058212450626, -0.16292475261872097, -0.16108440799595988, -0.15643875161374832, -0.14889996236391978, -0.138412731221582, -0.12496775999768817, -0.10862015432693252, -0.08951341255748667, -0.06790889264272902, -0.04421877261807678, -0.01903714070425786, 0.0068410215962155276, 0.032428071070148404, 0.056595171847732856, 0.07817446320390004, 0.09609927450414757, 0.10954633204133304, ...]) |
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.16988853, -0.15801067, -0.14353927, -0...8, -0.18656823, -0.18450676,
-0.17883423]), y = array([-0.01911319, -0.03872949, -0.05771295, -0...4, 0.04026674, 0.02075356,
0.0008297 ]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.16988853, -0.15801067, -0.14353927, -0...8, -0.18656823, -0.18450676,
-0.17883423]), array([-0.01911319, -0.03872949, -0.05771295, -0...4, 0.04026674, 0.02075356,
0.0008297 ])], 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.16988853, -0.15801067, -0.14353927, -0...8, -0.18656823, -0.18450676,
-0.17883423]), array([-0.01911319, -0.03872949, -0.05771295, -0...4, 0.04026674, 0.02075356,
0.0008297 ])], 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.16988853, -0.15801067, -0.14353927, -... 0.04026674, 0.02075356,
-0.01911319]]), 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.02308012, 0.04710449, 0.071...4196, 0.93751527, 0.95726365,
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.16988853, -0.15801067, -0.14353927, -... 0.04026674, 0.02075356,
-0.01911319]]), 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.02308012, 0.04710449, 0.071...4196, 0.93751527, 0.95726365,
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 |