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 = [1.9022717630809032, 1.9050504217688626, 1.9077797299147636, 1.9104597613979881, 1.9130905889791487, 1.9156722843067149, 1.918204917923549, 1.9206885592733276, 1.9231232767068644, 1.9255091374883346, 1.9278462078013894, 1.93013455275518, 1.93237423639027, 1.9345653216844574, 1.9367078705584935, 1.9388019438817021, 1.940847601477503, 1.9428449021288392, 1.944793903583503, 1.9466946625593715, ...], y_list = [1.5789311029033561, 1.5783487815336585, 1.5777255728272517, 1.5770616124982195, 1.576357034903061, 1.5756119730568514, 1.574826558649158, 1.5740009220597273, 1.573135192373936, 1.5722294973980235, 1.5712839636740985, 1.5702987164949316, 1.5692738799185324, 1.5682095767825215, 1.5671059287182962, 1.5659630561649955, 1.5647810783832685, 1.563560113468852, 1.562300278365956, 1.5610016888804654, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[1.9022717630809032, 1.9050504217688626, 1.9077797299147636, 1.9104597613979881, 1.9130905889791487, 1.9156722843067149, 1.918204917923549, 1.9206885592733276, 1.9231232767068644, 1.9255091374883346, 1.9278462078013894, 1.93013455275518, 1.93237423639027, 1.9345653216844574, 1.9367078705584935, 1.9388019438817021, 1.940847601477503, 1.9428449021288392, 1.944793903583503, 1.9466946625593715, ...], y_list=[1.5789311029033561, 1.5783487815336585, 1.5777255728272517, 1.5770616124982195, 1.576357034903061, 1.5756119730568514, 1.574826558649158, 1.5740009220597273, 1.573135192373936, 1.5722294973980235, 1.5712839636740985, 1.5702987164949316, 1.5692738799185324, 1.5682095767825215, 1.5671059287182962, 1.5659630561649955, 1.5647810783832685, 1.563560113468852, 1.562300278365956, 1.5610016888804654, ...]) |
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.31421753, -0.32755954, -0.34058997, -0...6, -0.27255389, -0.28669246,
-0.3005876 ]), y = array([-0.01566034, -0.03381067, -0.05192875, -0...9, 0.03881236, 0.02066713,
0.00250445]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.31421753, -0.32755954, -0.34058997, -0...6, -0.27255389, -0.28669246,
-0.3005876 ]), array([-0.01566034, -0.03381067, -0.05192875, -0...9, 0.03881236, 0.02066713,
0.00250445])], 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.31421753, -0.32755954, -0.34058997, -0...6, -0.27255389, -0.28669246,
-0.3005876 ]), array([-0.01566034, -0.03381067, -0.05192875, -0...9, 0.03881236, 0.02066713,
0.00250445])], 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.31421753, -0.32755954, -0.34058997, .... 0.03881236,
0.02066713, -0.01566034]]), 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.00336381, 0.00669635, 0.009...0724, 0.98975907, 0.99319406,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=647, 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.31421753, -0.32755954, -0.34058997, .... 0.03881236,
0.02066713, -0.01566034]]), 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.00336381, 0.00669635, 0.009...0724, 0.98975907, 0.99319406,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 647, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |