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.7361078694797423, -0.7354330926353488, -0.7347380489095883, -0.7340226715507506, -0.7332868925398821, -0.732530642572157, -0.7317538510377448, -0.730956446002162, -0.730138354186091, -0.7292995009446507, -0.7284398102461046, -0.7275592046499906, -0.7266576052846536, -0.7257349318241663, -0.7247911024646168, -0.7238260338997479, -0.7228396412959243, -0.721831838266413, -0.7208025368449499, -0.7197516474585752, ...], y_list = [0.7017756623306042, 0.7021280827685856, 0.7024611541171365, 0.7027747850653536, 0.7030688828547671, 0.703343353254077, 0.703598100533243, 0.7038330274369107, 0.7040480351571431, 0.7042430233054504, 0.7044178898840803, 0.7045725312565647, 0.7047068421174808, 0.7048207154614192, 0.704914042551117, 0.7049867128847482, 0.7050386141623253, 0.7050696322511991, 0.7050796511506211, 0.705068552955331, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.7361078694797423, -0.7354330926353488, -0.7347380489095883, -0.7340226715507506, -0.7332868925398821, -0.732530642572157, -0.7317538510377448, -0.730956446002162, -0.730138354186091, -0.7292995009446507, -0.7284398102461046, -0.7275592046499906, -0.7266576052846536, -0.7257349318241663, -0.7247911024646168, -0.7238260338997479, -0.7228396412959243, -0.721831838266413, -0.7208025368449499, -0.7197516474585752, ...], y_list=[0.7017756623306042, 0.7021280827685856, 0.7024611541171365, 0.7027747850653536, 0.7030688828547671, 0.703343353254077, 0.703598100533243, 0.7038330274369107, 0.7040480351571431, 0.7042430233054504, 0.7044178898840803, 0.7045725312565647, 0.7047068421174808, 0.7048207154614192, 0.704914042551117, 0.7049867128847482, 0.7050386141623253, 0.7050696322511991, 0.7050796511506211, 0.705068552955331, ...]) |
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.15630871, -0.14989147, -0.14339664, -0...18124012, -0.17511425, -0.16891824, -0.16265033]), y = array([-8.21982795e-05, -4.76764545e-03, -9.4505...55e-02, 9.28676132e-03,
4.60331379e-03]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.15630871, -0.14989147, -0.14339664, -0...18124012, -0.17511425, -0.16891824, -0.16265033]), array([-8.21982795e-05, -4.76764545e-03, -9.4505...55e-02, 9.28676132e-03,
4.60331379e-03])], 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.15630871, -0.14989147, -0.14339664, -0...18124012, -0.17511425, -0.16891824, -0.16265033]), array([-8.21982795e-05, -4.76764545e-03, -9.4505...55e-02, 9.28676132e-03,
4.60331379e-03])], 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([[-1.56308706e-01, -1.49891466e-01, -1.433...39662755e-02, 9.28676132e-03, -8.21982795e-05]]), 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.00343684, 0.00690022, 0.010... 0.9865138 , 0.98984666, 0.99320515, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=495, 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([[-1.56308706e-01, -1.49891466e-01, -1.433...39662755e-02, 9.28676132e-03, -8.21982795e-05]]), 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.00343684, 0.00690022, 0.010... 0.9865138 , 0.98984666, 0.99320515, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 495, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |