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 = [-4.9631415043678135, -4.989845226252337, -5.015911945992465, -5.041336792412967, -5.066114819530343, -5.090241004102547, -5.1137102431303605, -5.136517351307498, -5.158657058416345, -5.180124006666216, -5.200912747970918, -5.2210177411623375, -5.240433349136637, -5.259153835929586, -5.277173363717406, -5.294485989739434, -5.311085663138763, -5.3269662217168685, -5.34212138859814, -5.356544768800085, ...], y_list = [2.4164628959618986, 2.388948857898474, 2.3611298493140302, 2.333008695179426, 2.304588211046184, 2.2758712046229514, 2.246860477371454, 2.2175588261243457, 2.187969044727524, 2.158093925709493, 2.1279362619805275, 2.09749884856441, 2.0667844843657512, 2.0357959739758726, 2.004536129520557, 1.9730077725529005, 1.9412137359948685, 1.9091568661311706, 1.8768400246593455, 1.8442660908000743, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-4.9631415043678135, -4.989845226252337, -5.015911945992465, -5.041336792412967, -5.066114819530343, -5.090241004102547, -5.1137102431303605, -5.136517351307498, -5.158657058416345, -5.180124006666216, -5.200912747970918, -5.2210177411623375, -5.240433349136637, -5.259153835929586, -5.277173363717406, -5.294485989739434, -5.311085663138763, -5.3269662217168685, -5.34212138859814, -5.356544768800085, ...], y_list=[2.4164628959618986, 2.388948857898474, 2.3611298493140302, 2.333008695179426, 2.304588211046184, 2.2758712046229514, 2.246860477371454, 2.2175588261243457, 2.187969044727524, 2.158093925709493, 2.1279362619805275, 2.09749884856441, 2.0667844843657512, 2.0357959739758726, 2.004536129520557, 1.9730077725529005, 1.9412137359948685, 1.9091568661311706, 1.8768400246593455, 1.8442660908000743, ...]) |
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([-4.95386304, -4.91811121, -4.8809907 , -4...3, -5.05312283, -5.02134782,
-4.98826813]), y = array([-0.0335268 , -0.07387532, -0.11420323, -0...2, 0.08753045, 0.04718677,
0.00683087]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-4.95386304, -4.91811121, -4.8809907 , -4...3, -5.05312283, -5.02134782,
-4.98826813]), array([-0.0335268 , -0.07387532, -0.11420323, -0...2, 0.08753045, 0.04718677,
0.00683087])], 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([-4.95386304, -4.91811121, -4.8809907 , -4...3, -5.05312283, -5.02134782,
-4.98826813]), array([-0.0335268 , -0.07387532, -0.11420323, -0...2, 0.08753045, 0.04718677,
0.00683087])], 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([[-4.95386304, -4.91811121, -4.8809907 , -... 0.08753045, 0.04718677,
-0.0335268 ]]), 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.00270593, 0.00545714, 0.008...0402, 0.99214143, 0.99471912,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=297, 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([[-4.95386304, -4.91811121, -4.8809907 , -... 0.08753045, 0.04718677,
-0.0335268 ]]), 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.00270593, 0.00545714, 0.008...0402, 0.99214143, 0.99471912,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 297, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |