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.5550107615607873, -0.5613927144866929, -0.5677260256383966, -0.5740103602690981, -0.580245385711794, -0.5864307712389689, -0.5925661879256308, -0.5986513085155373, -0.6046858072904776, -0.6106693599424854, -0.6166016434488362, -0.6224823359497187, -0.6283111166284601, -0.6340876655941808, -0.6398116637667752, -0.6454827927641101, -0.6511007347913322, -0.6566651725321883, -0.6621757890422597, -0.66763226764402, ...], y_list = [-0.42858299018725915, -0.42662659804452124, -0.4246332404797794, -0.42260325028924495, -0.4205369568310413, -0.4184346861110077, -0.41629676086717077, -0.41412350065293263, -0.4119152219190177, -0.40967223809422004, -0.40739485966500005, -0.40508339425396855, -0.4027381466973, -0.40035941912112094, -0.39794751101690956, -0.3955027193159491, -0.39302533846287596, -0.3905156604883609, -0.3879739750809624, -0.3854005696581897, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.5550107615607873, -0.5613927144866929, -0.5677260256383966, -0.5740103602690981, -0.580245385711794, -0.5864307712389689, -0.5925661879256308, -0.5986513085155373, -0.6046858072904776, -0.6106693599424854, -0.6166016434488362, -0.6224823359497187, -0.6283111166284601, -0.6340876655941808, -0.6398116637667752, -0.6454827927641101, -0.6511007347913322, -0.6566651725321883, -0.6621757890422597, -0.66763226764402, ...], y_list=[-0.42858299018725915, -0.42662659804452124, -0.4246332404797794, -0.42260325028924495, -0.4205369568310413, -0.4184346861110077, -0.41629676086717077, -0.41412350065293263, -0.4119152219190177, -0.40967223809422004, -0.40739485966500005, -0.40508339425396855, -0.4027381466973, -0.40035941912112094, -0.39794751101690956, -0.3955027193159491, -0.39302533846287596, -0.3905156604883609, -0.3879739750809624, -0.3854005696581897, ...]) |
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([-8.71965393e-01, -8.74184148e-01, -8.7630...52e-01, -8.67216680e-01,
-8.69643180e-01]), y = array([-2.33504288e-04, -4.61614770e-03, -8.9982...41e-02, 8.53133761e-03,
4.14916592e-03]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-8.71965393e-01, -8.74184148e-01, -8.7630...52e-01, -8.67216680e-01,
-8.69643180e-01]), array([-2.33504288e-04, -4.61614770e-03, -8.9982...41e-02, 8.53133761e-03,
4.14916592e-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([-8.71965393e-01, -8.74184148e-01, -8.7630...52e-01, -8.67216680e-01,
-8.69643180e-01]), array([-2.33504288e-04, -4.61614770e-03, -8.9982...41e-02, 8.53133761e-03,
4.14916592e-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([[-8.71965393e-01, -8.74184148e-01, -8.763...e-02,
8.53133761e-03, -2.33504288e-04]]), 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.00149312, 0.00297226, 0.004...7798, 0.99543196, 0.99696998,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=407, 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([[-8.71965393e-01, -8.74184148e-01, -8.763...e-02,
8.53133761e-03, -2.33504288e-04]]), 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.00149312, 0.00297226, 0.004...7798, 0.99543196, 0.99696998,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 407, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |