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.05914045095991876, -0.05570673811666217, -0.052265300850967034, -0.04881659497015767, -0.045361079297524434, -0.04189921578260877, -0.0384314696131049, -0.03495830932843277, -0.031480206935015576, -0.027997638023304655, -0.024511081886585663, -0.02102102164161068, -0.017527944351093647, -0.014032341148109913, -0.010534707362439085, -0.007035542648888001, -0.0035353511176359673, -3.464146664163752e-05, 0.003466072883854319, 0.006966273654689827, ...], y_list = [0.2618894971368485, 0.2648598288944531, 0.2677934332975402, 0.2706897938262595, 0.27354839221557437, 0.27636870838037453, 0.2791502203413851, 0.2818924041518811, 0.2845947338252435, 0.28725668126338477, 0.28987771618608593, 0.29245730606127884, 0.29499491603631867, 0.2974900088702941, 0.2999420448674247, 0.30235048181160457, 0.30471477490214927, 0.30703437669081063, 0.30930873702013195, 0.3115373029632184, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.05914045095991876, -0.05570673811666217, -0.052265300850967034, -0.04881659497015767, -0.045361079297524434, -0.04189921578260877, -0.0384314696131049, -0.03495830932843277, -0.031480206935015576, -0.027997638023304655, -0.024511081886585663, -0.02102102164161068, -0.017527944351093647, -0.014032341148109913, -0.010534707362439085, -0.007035542648888001, -0.0035353511176359673, -3.464146664163752e-05, 0.003466072883854319, 0.006966273654689827, ...], y_list=[0.2618894971368485, 0.2648598288944531, 0.2677934332975402, 0.2706897938262595, 0.27354839221557437, 0.27636870838037453, 0.2791502203413851, 0.2818924041518811, 0.2845947338252435, 0.28725668126338477, 0.28987771618608593, 0.29245730606127884, 0.29499491603631867, 0.2974900088702941, 0.2999420448674247, 0.30235048181160457, 0.30471477490214927, 0.30703437669081063, 0.30930873702013195, 0.3115373029632184, ...]) |
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([-2.53040818e-01, -2.54880530e-01, -2.5668...57e-01, -2.49249478e-01,
-2.51163649e-01]), y = array([-0.00277327, -0.00704144, -0.01130856, -0...3, 0.01003118, 0.00576366,
0.00149531]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-2.53040818e-01, -2.54880530e-01, -2.5668...57e-01, -2.49249478e-01,
-2.51163649e-01]), array([-0.00277327, -0.00704144, -0.01130856, -0...3, 0.01003118, 0.00576366,
0.00149531])], 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([-2.53040818e-01, -2.54880530e-01, -2.5668...57e-01, -2.49249478e-01,
-2.51163649e-01]), array([-0.00277327, -0.00704144, -0.01130856, -0...3, 0.01003118, 0.00576366,
0.00149531])], 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([[-2.53040818e-01, -2.54880530e-01, -2.566...00311760e-02, 5.76366298e-03, -2.77327222e-03]]), 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.0026099 , 0.00521091, 0.007...7721, 0.99211982, 0.99475469,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=387, 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([[-2.53040818e-01, -2.54880530e-01, -2.566...00311760e-02, 5.76366298e-03, -2.77327222e-03]]), 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.0026099 , 0.00521091, 0.007...7721, 0.99211982, 0.99475469,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 387, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |