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.3539683041155293, 0.35207127528227156, 0.3501374648075136, 0.34816702105935304, 0.3461600950207197, 0.34411684031439793, 0.3420374132287538, 0.3399219727441769, 0.33777068056023063, 0.33558370112351754, 0.3333612016562593, 0.3311033521855963, 0.3288103255736024, 0.3264822975480262, 0.3241194465363644, 0.32172195445229196, 0.3192900056449798, 0.3168237876261511, 0.3143234909377276, 0.3117893091869307, ...], y_list = [0.19686061198116184, 0.1994826081378976, 0.20208376382454313, 0.20466377631796964, 0.20722234324534103, 0.20975916258109495, 0.21227393264439748, 0.21476635209707198, 0.2172361199420306, 0.21968293552220763, 0.22210649852001624, 0.22450650895733487, 0.22688266719604544, 0.22923467393912522, 0.2315622304243177, 0.233865037687098, 0.23614279763267693, 0.23839521235131803, 0.24062198428877615, 0.2428228162510612, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.3539683041155293, 0.35207127528227156, 0.3501374648075136, 0.34816702105935304, 0.3461600950207197, 0.34411684031439793, 0.3420374132287538, 0.3399219727441769, 0.33777068056023063, 0.33558370112351754, 0.3333612016562593, 0.3311033521855963, 0.3288103255736024, 0.3264822975480262, 0.3241194465363644, 0.32172195445229196, 0.3192900056449798, 0.3168237876261511, 0.3143234909377276, 0.3117893091869307, ...], y_list=[0.19686061198116184, 0.1994826081378976, 0.20208376382454313, 0.20466377631796964, 0.20722234324534103, 0.20975916258109495, 0.21227393264439748, 0.21476635209707198, 0.2172361199420306, 0.21968293552220763, 0.22210649852001624, 0.22450650895733487, 0.22688266719604544, 0.22923467393912522, 0.2315622304243177, 0.233865037687098, 0.23614279763267693, 0.23839521235131803, 0.24062198428877615, 0.2428228162510612, ...]) |
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([-2.92806742e-01, -2.93098927e-01, -2.9331...19e-01, -2.91996315e-01,
-2.92439119e-01]), y = array([-4.15599890e-03, -8.60512735e-03, -1.3052...15e-03, 4.74432514e-03,
2.94200725e-04]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-2.92806742e-01, -2.93098927e-01, -2.9331...19e-01, -2.91996315e-01,
-2.92439119e-01]), array([-4.15599890e-03, -8.60512735e-03, -1.3052...15e-03, 4.74432514e-03,
2.94200725e-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([-2.92806742e-01, -2.93098927e-01, -2.9331...19e-01, -2.91996315e-01,
-2.92439119e-01]), array([-4.15599890e-03, -8.60512735e-03, -1.3052...15e-03, 4.74432514e-03,
2.94200725e-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([[-0.29280674, -0.29309893, -0.29331544, .... 0.00919323,
0.00474433, -0.004156 ]]), 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.00219011, 0.00437701, 0.006...0662, 0.99341005, 0.99561009,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=507, 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.29280674, -0.29309893, -0.29331544, .... 0.00919323,
0.00474433, -0.004156 ]]), 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.00219011, 0.00437701, 0.006...0662, 0.99341005, 0.99561009,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 507, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |