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.2800169466825337, -0.28222304959443273, -0.28440564102019605, -0.2865644809098078, -0.28869932810127485, -0.29080994028464263, -0.29289607396593237, -0.294957484430994, -0.29699392570926625, -0.29900515053744303, -0.30099091032303993, -0.3029509551078539, -0.3048850335313195, -0.30679289279374755, -0.3086742786194554, -0.3105289352197753, -0.31235660525594583, -0.3141570298018825, -0.31592994830682575, -0.317675098557867, ...], y_list = [-0.1730649498969689, -0.17775130458393254, -0.18242285102439698, -0.18707916269220712, -0.1917198109832902, -0.19634436513949696, -0.20095239217175942, -0.20554345678253974, -0.21011712128754073, -0.21467294553665833, -0.21921048683414812, -0.22372929985797618, -0.22822893657834195, -0.23270894617532623, -0.23716887495566263, -0.24160826626858564, -0.2460266604207413, -0.2504235945901343, -0.25479860273907706, -0.25915121552612447, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.2800169466825337, -0.28222304959443273, -0.28440564102019605, -0.2865644809098078, -0.28869932810127485, -0.29080994028464263, -0.29289607396593237, -0.294957484430994, -0.29699392570926625, -0.29900515053744303, -0.30099091032303993, -0.3029509551078539, -0.3048850335313195, -0.30679289279374755, -0.3086742786194554, -0.3105289352197753, -0.31235660525594583, -0.3141570298018825, -0.31592994830682575, -0.317675098557867, ...], y_list=[-0.1730649498969689, -0.17775130458393254, -0.18242285102439698, -0.18707916269220712, -0.1917198109832902, -0.19634436513949696, -0.20095239217175942, -0.20554345678253974, -0.21011712128754073, -0.21467294553665833, -0.21921048683414812, -0.22372929985797618, -0.22822893657834195, -0.23270894617532623, -0.23716887495566263, -0.24160826626858564, -0.2460266604207413, -0.2504235945901343, -0.25479860273907706, -0.25915121552612447, ...]) |
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.18979479, -0.19267856, -0.19554681, -0...4, -0.18105251, -0.18398153,
-0.1868957 ]), y = array([-0.00291583, -0.00786259, -0.01280871, -0...5, 0.01192425, 0.00697799,
0.00203116]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.18979479, -0.19267856, -0.19554681, -0...4, -0.18105251, -0.18398153,
-0.1868957 ]), array([-0.00291583, -0.00786259, -0.01280871, -0...5, 0.01192425, 0.00697799,
0.00203116])], 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.18979479, -0.19267856, -0.19554681, -0...4, -0.18105251, -0.18398153,
-0.1868957 ]), array([-0.00291583, -0.00786259, -0.01280871, -0...5, 0.01192425, 0.00697799,
0.00203116])], 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.18979479, -0.19267856, -0.19554681, -... 0.01192425, 0.00697799,
-0.00291583]]), 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.0024413 , 0.00487904, 0.007...0283, 0.99265656, 0.99510745,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=457, 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.18979479, -0.19267856, -0.19554681, -... 0.01192425, 0.00697799,
-0.00291583]]), 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.0024413 , 0.00487904, 0.007...0283, 0.99265656, 0.99510745,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 457, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |