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.6135511448272517, -0.6132370608716017, -0.612832119322807, -0.6123349888353169, -0.6117442862461239, -0.6110585740598875, -0.610276357563331, -0.6093960819209571, -0.6084161289796896, -0.6073348138594676, -0.6061503812945238, -0.6048610017027746, -0.6034647669582824, -0.6019596858389928, -0.6003436791187674, -0.5986145742691973, -0.5967700997326121, -0.594807878723095, -0.5927254225070738, -0.5905201231090214, ...], y_list = [-0.887697793916767, -0.8854161892385033, -0.8830034014124541, -0.8804577832282644, -0.8777776212560828, -0.8749611330585806, -0.8720064633138956, -0.8689116805180905, -0.8656747730532439, -0.8622936450519766, -0.8587661119627008, -0.8550898957890108, -0.8512626199737486, -0.8472818038950669, -0.8431448569381398, -0.8388490721020558, -0.8343916190967324, -0.82976953687937, -0.8249797255739201, -0.8200189377100922, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.6135511448272517, -0.6132370608716017, -0.612832119322807, -0.6123349888353169, -0.6117442862461239, -0.6110585740598875, -0.610276357563331, -0.6093960819209571, -0.6084161289796896, -0.6073348138594676, -0.6061503812945238, -0.6048610017027746, -0.6034647669582824, -0.6019596858389928, -0.6003436791187674, -0.5986145742691973, -0.5967700997326121, -0.594807878723095, -0.5927254225070738, -0.5905201231090214, ...], y_list=[-0.887697793916767, -0.8854161892385033, -0.8830034014124541, -0.8804577832282644, -0.8777776212560828, -0.8749611330585806, -0.8720064633138956, -0.8689116805180905, -0.8656747730532439, -0.8622936450519766, -0.8587661119627008, -0.8550898957890108, -0.8512626199737486, -0.8472818038950669, -0.8431448569381398, -0.8388490721020558, -0.8343916190967324, -0.82976953687937, -0.8249797255739201, -0.8200189377100922, ...]) |
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([-4.03699531e-02, -9.71524724e-02, -1.3893....24467204e-02, 6.65533114e-02, 3.39360633e-02]), y = array([-0.02634216, -0.08974705, -0.13971593, -0...3,
0.04378948, 0.05525468, 0.0425544 ]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-4.03699531e-02, -9.71524724e-02, -1.3893....24467204e-02, 6.65533114e-02, 3.39360633e-02]), array([-0.02634216, -0.08974705, -0.13971593, -0...3,
0.04378948, 0.05525468, 0.0425544 ])], 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([-4.03699531e-02, -9.71524724e-02, -1.3893....24467204e-02, 6.65533114e-02, 3.39360633e-02]), array([-0.02634216, -0.08974705, -0.13971593, -0...3,
0.04378948, 0.05525468, 0.0425544 ])], 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([[-4.03699531e-02, -9.71524724e-02, -1.389...e-02, 5.52546828e-02,
-2.63421583e-02]]), 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.03554171, 0.0627417 , 0.085...5305,
0.93845231, 0.94383538, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=229, 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([[-4.03699531e-02, -9.71524724e-02, -1.389...e-02, 5.52546828e-02,
-2.63421583e-02]]), 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.03554171, 0.0627417 , 0.085...5305,
0.93845231, 0.94383538, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 229, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |