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.050690198533602814, 0.04206729468436075, 0.03321554683803127, 0.02414967031560214, 0.014894971321792455, 0.005495485963594043, -0.003969896523273697, -0.01335263475688422, -0.022350235969471274, -0.03026611250947166, -0.03514322905421953, -0.02962475125293304, 0.003043260065259715, 0.03920129033078835, 0.06596930511939134, 0.0866922711820446, 0.10348277680707711, 0.117480070270421, 0.12935896683407305, 0.13955386880084872, ...], y_list = [0.14787283487421637, 0.1267967536405917, 0.1050301818158388, 0.08258527576448689, 0.05949224302957448, 0.03581516990451818, 0.011684267988876416, -0.012632694861689034, -0.036552991766076584, -0.058660670535575374, -0.07478311602593232, -0.0684072527798946, 0.0017738517399340963, 0.08490172211352463, 0.14802619975955209, 0.1976298270156594, 0.23827987076945967, 0.27250239592684977, 0.30181308982279076, 0.3271958129836004, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.050690198533602814, 0.04206729468436075, 0.03321554683803127, 0.02414967031560214, 0.014894971321792455, 0.005495485963594043, -0.003969896523273697, -0.01335263475688422, -0.022350235969471274, -0.03026611250947166, -0.03514322905421953, -0.02962475125293304, 0.003043260065259715, 0.03920129033078835, 0.06596930511939134, 0.0866922711820446, 0.10348277680707711, 0.117480070270421, 0.12935896683407305, 0.13955386880084872, ...], y_list=[0.14787283487421637, 0.1267967536405917, 0.1050301818158388, 0.08258527576448689, 0.05949224302957448, 0.03581516990451818, 0.011684267988876416, -0.012632694861689034, -0.036552991766076584, -0.058660670535575374, -0.07478311602593232, -0.0684072527798946, 0.0017738517399340963, 0.08490172211352463, 0.14802619975955209, 0.1976298270156594, 0.23827987076945967, 0.27250239592684977, 0.30181308982279076, 0.3271958129836004, ...]) |
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.01335263, -0.02235024, -0.03026611, -0...02414967, 0.01489497, 0.00549549, -0.0039699 ]), y = array([-0.01263269, -0.03655299, -0.05866067, -0...08258528, 0.05949224, 0.03581517, 0.01168427]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.01335263, -0.02235024, -0.03026611, -0...02414967, 0.01489497, 0.00549549, -0.0039699 ]), array([-0.01263269, -0.03655299, -0.05866067, -0...08258528, 0.05949224, 0.03581517, 0.01168427])], 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.01335263, -0.02235024, -0.03026611, -0...02414967, 0.01489497, 0.00549549, -0.0039699 ]), array([-0.01263269, -0.03655299, -0.05866067, -0...08258528, 0.05949224, 0.03581517, 0.01168427])], 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.01335263, -0.02235024, -0.03026611, -...8258528, 0.05949224, 0.03581517, -0.01263269]]), w=array([1., 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.02167838, 0.04159714, 0.055... 0.91319155, 0.93429474, 0.95590359, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=71, 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.01335263, -0.02235024, -0.03026611, -...8258528, 0.05949224, 0.03581517, -0.01263269]]), w = array([1., 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.02167838, 0.04159714, 0.055... 0.91319155, 0.93429474, 0.95590359, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 71, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |