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.14827779373016817, 0.14231864847550182, 0.1362319109931207, 0.130024671952758, 0.12370390547273519, 0.1172764721212144, 0.11074912213902606, 0.1041284988470358, 0.09742114220543968, 0.09063349249635688, 0.08377189410464254, 0.07684259937504206, 0.06985177252663893, 0.06280549360808785, 0.055709762479373336, 0.04857050280782878, 0.04139356606791377, 0.034184735535803236, 0.026949730271206836, 0.01969420892963673, ...], y_list = [0.18137409434086652, 0.18431367472653148, 0.1870880351287718, 0.18969693178943062, 0.19214022146598667, 0.19441785490681418, 0.19652987081579046, 0.1984763902791517, 0.2002576116287921, 0.20187380571753438, 0.20332531158324874, 0.2046125324800496, 0.20573593225613773, 0.20669603205917075, 0.2074934073513359, 0.20812868521754432, 0.20860254195138586, 0.20891570090464595, 0.20906893058732173, 0.2090630430043872, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.14827779373016817, 0.14231864847550182, 0.1362319109931207, 0.130024671952758, 0.12370390547273519, 0.1172764721212144, 0.11074912213902606, 0.1041284988470358, 0.09742114220543968, 0.09063349249635688, 0.08377189410464254, 0.07684259937504206, 0.06985177252663893, 0.06280549360808785, 0.055709762479373336, 0.04857050280782878, 0.04139356606791377, 0.034184735535803236, 0.026949730271206836, 0.01969420892963673, ...], y_list=[0.18137409434086652, 0.18431367472653148, 0.1870880351287718, 0.18969693178943062, 0.19214022146598667, 0.19441785490681418, 0.19652987081579046, 0.1984763902791517, 0.2002576116287921, 0.20187380571753438, 0.20332531158324874, 0.2046125324800496, 0.20573593225613773, 0.20669603205917075, 0.2074934073513359, 0.20812868521754432, 0.20860254195138586, 0.20891570090464595, 0.20906893058732173, 0.2090630430043872, ...]) |
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.25248193, -0.25158487, -0.2503763 , -0...25306917, -0.25336079, -0.25336408, -0.25307308]), y = array([-0.00483566, -0.01082535, -0.01680162, -0...01911111, 0.0131401 , 0.00715415, 0.00115992]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.25248193, -0.25158487, -0.2503763 , -0...25306917, -0.25336079, -0.25336408, -0.25307308]), array([-0.00483566, -0.01082535, -0.01680162, -0...01911111, 0.0131401 , 0.00715415, 0.00115992])], 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.25248193, -0.25158487, -0.2503763 , -0...25306917, -0.25336079, -0.25336408, -0.25307308]), array([-0.00483566, -0.01082535, -0.01680162, -0...01911111, 0.0131401 , 0.00715415, 0.00115992])], 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.25248193, -0.25158487, -0.2503763 , -...1911111, 0.0131401 , 0.00715415, -0.00483566]]), 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.00459139, 0.00921366, 0.013... 0.98181617, 0.98634814, 0.99088604, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=181, 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.25248193, -0.25158487, -0.2503763 , -...1911111, 0.0131401 , 0.00715415, -0.00483566]]), 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.00459139, 0.00921366, 0.013... 0.98181617, 0.98634814, 0.99088604, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 181, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |