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.39949237307687135, -0.3687792746747192, -0.3377131686727398, -0.3062878165374066, -0.2744981276522056, -0.24234077240831223, -0.20981507105158334, -0.1769242974573652, -0.1436776195652009, -0.110093038903015, -0.07620193911833038, -0.0420563047175941, -0.0077405286748788915, 0.02660857061918006, 0.06076627940193505, 0.09435384546871246, 0.1267069340541364, 0.15659336733104884, 0.18155179831755971, 0.19621337419173693, ...], y_list = [-1.5028917535867168, -1.4630194714777345, -1.4217453928738222, -1.378957188042968, -1.3345264182405756, -1.2883051400858743, -1.2401215436218629, -1.189774270639375, -1.1370248990372824, -1.0815878293202366, -1.023116412390349, -0.9611835105018195, -0.8952535995404697, -0.8246416454217467, -0.7484507780082849, -0.6654748490561901, -0.5740423674458487, -0.47176528935837647, -0.3551678748023121, -0.21943725652607196, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.39949237307687135, -0.3687792746747192, -0.3377131686727398, -0.3062878165374066, -0.2744981276522056, -0.24234077240831223, -0.20981507105158334, -0.1769242974573652, -0.1436776195652009, -0.110093038903015, -0.07620193911833038, -0.0420563047175941, -0.0077405286748788915, 0.02660857061918006, 0.06076627940193505, 0.09435384546871246, 0.1267069340541364, 0.15659336733104884, 0.18155179831755971, 0.19621337419173693, ...], y_list=[-1.5028917535867168, -1.4630194714777345, -1.4217453928738222, -1.378957188042968, -1.3345264182405756, -1.2883051400858743, -1.2401215436218629, -1.189774270639375, -1.1370248990372824, -1.0815878293202366, -1.023116412390349, -0.9611835105018195, -0.8952535995404697, -0.8246416454217467, -0.7484507780082849, -0.6654748490561901, -0.5740423674458487, -0.47176528935837647, -0.3551678748023121, -0.21943725652607196, ...]) |
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([-1.64648391, -1.67846892, -1.70986371, -1...51212157, -1.54673273, -1.58064329, -1.61388417]), y = array([-0.01092451, -0.02949862, -0.04806242, -0...06333582, 0.04479241, 0.02622861, 0.00765361]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-1.64648391, -1.67846892, -1.70986371, -1...51212157, -1.54673273, -1.58064329, -1.61388417]), array([-0.01092451, -0.02949862, -0.04806242, -0...06333582, 0.04479241, 0.02622861, 0.00765361])], 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([-1.64648391, -1.67846892, -1.70986371, -1...51212157, -1.54673273, -1.58064329, -1.61388417]), array([-0.01092451, -0.02949862, -0.04806242, -0...06333582, 0.04479241, 0.02622861, 0.00765361])], 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.64648391, -1.67846892, -1.70986371, .... 0.04479241,
0.02622861, -0.01092451]]), w=array([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.0031766 , 0.00630901, 0.009... 0.98681466, 0.99018696, 0.99350717, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=561, 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.64648391, -1.67846892, -1.70986371, .... 0.04479241,
0.02622861, -0.01092451]]), w = array([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.0031766 , 0.00630901, 0.009... 0.98681466, 0.99018696, 0.99350717, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 561, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |