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> |
956
|
957 # Smooth curve if necessary
|
=> 958 xa_smooth, ya_smooth = Q_get_smoothed_orbit(xa_list, ya_list)
|
959 plt.plot(xa_smooth, ya_smooth, label=f'Orbit of {wds}', color='#528B8B')
|
960
|
| xa_smooth undefined, ya_smooth undefined, Q_get_smoothed_orbit = <function Q_get_smoothed_orbit>, xa_list = [-0.447220078379466, -0.4661888310794365, -0.4845119743668391, -0.5021921950385507, -0.5192345937753076, -0.535646369457634, -0.5514364981272512, -0.5666154509295409, -0.5811949266518366, -0.5951876102521371, -0.6086069562702987, -0.6214669967314748, -0.633782172559878, -0.6455671871128312, -0.6568368801879553, -0.6676061207192534, -0.6778897163329461, -0.6877023379571185, -0.697058457750577, -0.7059722987196033, ...], ya_list = [0.21857319523916655, 0.20673072937205042, 0.19460177166441292, 0.18221440010574166, 0.1695954285992668, 0.15677031150251966, 0.1437630976467721, 0.13059639973316328, 0.11729139409490945, 0.10386783915426191, 0.0903441095677742, 0.07673724240453597, 0.0630629921771185, 0.049335892016075494, 0.03556931872565413, 0.021775559868144587, 0.007965881390155506, -0.005849405376410309, -0.01966087823226086, -0.033459940810672446, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.447220078379466, -0.4661888310794365, -0.4845119743668391, -0.5021921950385507, -0.5192345937753076, -0.535646369457634, -0.5514364981272512, -0.5666154509295409, -0.5811949266518366, -0.5951876102521371, -0.6086069562702987, -0.6214669967314748, -0.633782172559878, -0.6455671871128312, -0.6568368801879553, -0.6676061207192534, -0.6778897163329461, -0.6877023379571185, -0.697058457750577, -0.7059722987196033, ...], y_list=[0.21857319523916655, 0.20673072937205042, 0.19460177166441292, 0.18221440010574166, 0.1695954285992668, 0.15677031150251966, 0.1437630976467721, 0.13059639973316328, 0.11729139409490945, 0.10386783915426191, 0.0903441095677742, 0.07673724240453597, 0.0630629921771185, 0.049335892016075494, 0.03556931872565413, 0.021775559868144587, 0.007965881390155506, -0.005849405376410309, -0.01966087823226086, -0.033459940810672446, ...]) |
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.68770234, -0.69705846, -0.7059723 , -0...9, -0.65683688, -0.66760612,
-0.67788972]), y = array([-5.84940538e-03, -1.96608782e-02, -3.3459....55693187e-02, 2.17755599e-02, 7.96588139e-03]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.68770234, -0.69705846, -0.7059723 , -0...9, -0.65683688, -0.66760612,
-0.67788972]), array([-5.84940538e-03, -1.96608782e-02, -3.3459....55693187e-02, 2.17755599e-02, 7.96588139e-03])], 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.68770234, -0.69705846, -0.7059723 , -0...9, -0.65683688, -0.66760612,
-0.67788972]), array([-5.84940538e-03, -1.96608782e-02, -3.3459....55693187e-02, 2.17755599e-02, 7.96588139e-03])], 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.68770234, -0.69705846, -0.7059723 , .... 0.03556932,
0.02177556, -0.00584941]]), 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.00267007, 0.00529942, 0.007...8377, 0.99173134, 0.99453229,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=657, 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.68770234, -0.69705846, -0.7059723 , .... 0.03556932,
0.02177556, -0.00584941]]), 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.00267007, 0.00529942, 0.007...8377, 0.99173134, 0.99453229,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 657, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |