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.1378936902592233, 0.139061699083383, 0.14021541646160132, 0.14135447812775156, 0.1424785093562721, 0.14358712454992165, 0.1446799268078217, 0.14575650747268315, 0.14681644565603724, 0.14785930774022388, 0.14888464685579417, 0.14989200233292657, 0.1508808991253345, 0.151850847205066, 0.1528013409264817, 0.15373185835759046, 0.15464186057679852, 0.1555307909330051, 0.1563980742668342, 0.157243116090654, ...], y_list = [-0.6170364481592576, -0.6139933202603706, -0.6108870942936915, -0.6077170190923672, -0.6044823268828413, -0.60118223281038, -0.5978159344493362, -0.5943826112977298, -0.5908814242557289, -0.5873115150876197, -0.5836720058668761, -0.5799619984039359, -0.5761805736563489, -0.5723267911209445, -0.5683996882077489, -0.5643982795953845, -0.5603215565677723, -0.5561684863319959, -0.5519380113172808, -0.5476290484551262, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.1378936902592233, 0.139061699083383, 0.14021541646160132, 0.14135447812775156, 0.1424785093562721, 0.14358712454992165, 0.1446799268078217, 0.14575650747268315, 0.14681644565603724, 0.14785930774022388, 0.14888464685579417, 0.14989200233292657, 0.1508808991253345, 0.151850847205066, 0.1528013409264817, 0.15373185835759046, 0.15464186057679852, 0.1555307909330051, 0.1563980742668342, 0.157243116090654, ...], y_list=[-0.6170364481592576, -0.6139933202603706, -0.6108870942936915, -0.6077170190923672, -0.6044823268828413, -0.60118223281038, -0.5978159344493362, -0.5943826112977298, -0.5908814242557289, -0.5873115150876197, -0.5836720058668761, -0.5799619984039359, -0.5761805736563489, -0.5723267911209445, -0.5683996882077489, -0.5643982795953845, -0.5603215565677723, -0.5561684863319959, -0.5519380113172808, -0.5476290484551262, ...]) |
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.22997689, -0.2302983 , -0.23058833, -0...2, -0.22881802, -0.22923741,
-0.22962348]), y = array([-4.66811412e-03, -9.63307253e-03, -1.4596...55e-02, 5.26305232e-03,
2.97491529e-04]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.22997689, -0.2302983 , -0.23058833, -0...2, -0.22881802, -0.22923741,
-0.22962348]), array([-4.66811412e-03, -9.63307253e-03, -1.4596...55e-02, 5.26305232e-03,
2.97491529e-04])], 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.22997689, -0.2302983 , -0.23058833, -0...2, -0.22881802, -0.22923741,
-0.22962348]), array([-4.66811412e-03, -9.63307253e-03, -1.4596...55e-02, 5.26305232e-03,
2.97491529e-04])], 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([[-2.29976895e-01, -2.30298302e-01, -2.305...e-02, 5.26305232e-03,
-4.66811412e-03]]), 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.00229039, 0.0045793 , 0.006...2753, 0.99312188, 0.99541555,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=487, 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([[-2.29976895e-01, -2.30298302e-01, -2.305...e-02, 5.26305232e-03,
-4.66811412e-03]]), 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.00229039, 0.0045793 , 0.006...2753, 0.99312188, 0.99541555,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 487, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |