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.6778832041849825, -0.6785204022457164, -0.6791331993956453, -0.6797215012300717, -0.6802852127829636, -0.6808242385206786, -0.6813384823356762, -0.681827847540215, -0.6822922368600342, -0.6827315524280244, -0.6831456957778845, -0.683534567837766, -0.6838980689239073, -0.6842360987342565, -0.6845485563420859, -0.6848353401895938, -0.6850963480815039, -0.685331477178654, -0.6855406239915792, -0.685723684374094, ...], y_list = [0.39211007491579686, 0.39433118960713004, 0.39653812335083743, 0.3987307545262796, 0.40090896078739235, 0.40307261905062436, 0.4052216054827553, 0.40735579548859197, 0.4094750636985322, 0.4115792839560073, 0.4136683293047893, 0.4157420719761676, 0.4178003833759892, 0.419843134071563, 0.4218701937784225, 0.42388143134694534, 0.4258767147488318, 0.4278559110634321, 0.42981888646392624, 0.43176550620335385, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.6778832041849825, -0.6785204022457164, -0.6791331993956453, -0.6797215012300717, -0.6802852127829636, -0.6808242385206786, -0.6813384823356762, -0.681827847540215, -0.6822922368600342, -0.6827315524280244, -0.6831456957778845, -0.683534567837766, -0.6838980689239073, -0.6842360987342565, -0.6845485563420859, -0.6848353401895938, -0.6850963480815039, -0.685331477178654, -0.6855406239915792, -0.685723684374094, ...], y_list=[0.39211007491579686, 0.39433118960713004, 0.39653812335083743, 0.3987307545262796, 0.40090896078739235, 0.40307261905062436, 0.4052216054827553, 0.40735579548859197, 0.4094750636985322, 0.4115792839560073, 0.4136683293047893, 0.4157420719761676, 0.4178003833759892, 0.419843134071563, 0.4218701937784225, 0.42388143134694534, 0.4258767147488318, 0.4278559110634321, 0.42981888646392624, 0.43176550620335385, ...]) |
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([-3.92007220e-01, -3.88737593e-01, -3.8545...34e-01, -3.98504467e-01,
-3.95262870e-01]), y = array([-2.88195589e-03, -6.06144245e-03, -9.2407...91e-03, 3.47721231e-03,
2.97633479e-04]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-3.92007220e-01, -3.88737593e-01, -3.8545...34e-01, -3.98504467e-01,
-3.95262870e-01]), array([-2.88195589e-03, -6.06144245e-03, -9.2407...91e-03, 3.47721231e-03,
2.97633479e-04])], 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([-3.92007220e-01, -3.88737593e-01, -3.8545...34e-01, -3.98504467e-01,
-3.95262870e-01]), array([-2.88195589e-03, -6.06144245e-03, -9.2407...91e-03, 3.47721231e-03,
2.97633479e-04])], 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.39200722, -0.38873759, -0.38545407, .... 0.00665667,
0.00347721, -0.00288196]]), 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.00156577, 0.00313492, 0.004...7142, 0.99532331, 0.99687873,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=667, 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.39200722, -0.38873759, -0.38545407, .... 0.00665667,
0.00347721, -0.00288196]]), 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.00156577, 0.00313492, 0.004...7142, 0.99532331, 0.99687873,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 667, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |