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.35715340583210914, -0.35466404801805756, -0.3521328111071432, -0.3495598880083487, -0.3469454670251399, -0.34428973198174884, -0.3415928623478667, -0.33885503336199074, -0.33607641615367556, -0.3332571778649354, -0.33039748177106215, -0.32749748740111523, -0.32455735065836416, -0.32157722394095406, -0.3185572562630982, -0.3154975933770893, -0.312398377896453, -0.30925974942057366, -0.3060818446611422, -0.3028647975707924, ...], y_list = [0.3900933818690518, 0.39181470524323403, 0.39348976251998813, 0.3951182374522799, 0.3966998057923943, 0.39823413506497285, 0.3997208843318215, 0.40115970394805417, 0.40255023530911666, 0.4038921105882139, 0.4051849524636354, 0.406428373835453, 0.40762197753102763, 0.4087653559987418, 0.4098580909893292, 0.4108997532241504, 0.4118899020497142, 0.4128280850777109, 0.4137138378097764, 0.4145466832461598, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.35715340583210914, -0.35466404801805756, -0.3521328111071432, -0.3495598880083487, -0.3469454670251399, -0.34428973198174884, -0.3415928623478667, -0.33885503336199074, -0.33607641615367556, -0.3332571778649354, -0.33039748177106215, -0.32749748740111523, -0.32455735065836416, -0.32157722394095406, -0.3185572562630982, -0.3154975933770893, -0.312398377896453, -0.30925974942057366, -0.3060818446611422, -0.3028647975707924, ...], y_list=[0.3900933818690518, 0.39181470524323403, 0.39348976251998813, 0.3951182374522799, 0.3966998057923943, 0.39823413506497285, 0.3997208843318215, 0.40115970394805417, 0.40255023530911666, 0.4038921105882139, 0.4051849524636354, 0.406428373835453, 0.40762197753102763, 0.4087653559987418, 0.4098580909893292, 0.4108997532241504, 0.4118899020497142, 0.4128280850777109, 0.4137138378097764, 0.4145466832461598, ...]) |
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.29628578, -0.29047114, -0.28445007, -0...6, -0.31256711,
-0.30732665, -0.30190183]), y = array([-0.00205394, -0.00736559, -0.01267196, -0...7, 0.01387604,
0.00857013, 0.00325911]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.29628578, -0.29047114, -0.28445007, -0...6, -0.31256711,
-0.30732665, -0.30190183]), array([-0.00205394, -0.00736559, -0.01267196, -0...7, 0.01387604,
0.00857013, 0.00325911])], 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.29628578, -0.29047114, -0.28445007, -0...6, -0.31256711,
-0.30732665, -0.30190183]), array([-0.00205394, -0.00736559, -0.01267196, -0...7, 0.01387604,
0.00857013, 0.00325911])], 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.29628578, -0.29047114, -0.28445007, -... 0.01387604,
0.00857013, -0.00205394]]), 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.00480302, 0.0096976 , 0.014...3824, 0.98610731,
0.99065543, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=263, 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.29628578, -0.29047114, -0.28445007, -... 0.01387604,
0.00857013, -0.00205394]]), 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.00480302, 0.0096976 , 0.014...3824, 0.98610731,
0.99065543, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 263, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |