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.33328331739184364, 0.340017979673975, 0.3466437319885184, 0.35315793851916216, 0.359557891750415, 0.3658408068949924, 0.3720038160364819, 0.3780439619541131, 0.3839581915936387, 0.38974334914516867, 0.395396168685087, 0.40091326633502283, 0.4062911318860388, 0.41152611983075865, 0.41661443973986745, 0.4215521459123159, 0.42633512622035896, 0.43095909020813516, 0.43541955559550627, 0.4397118347209833, ...], y_list = [-0.17779796195331807, -0.1781981199446925, -0.17854120062891263, -0.1788268297230473, -0.1790546058745276, -0.17922409980302767, -0.17933485336531715, -0.17938637853785994, -0.17937815631135556, -0.17930963549078366, -0.17918023139379508, -0.17898932443950882, -0.17873625861888945, -0.17842033983690092, -0.17804083411553387, -0.17759696564558425, -0.17708791467369794, -0.1765128151900022, -0.17587075249428008, -0.1751607604197522, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.33328331739184364, 0.340017979673975, 0.3466437319885184, 0.35315793851916216, 0.359557891750415, 0.3658408068949924, 0.3720038160364819, 0.3780439619541131, 0.3839581915936387, 0.38974334914516867, 0.395396168685087, 0.40091326633502283, 0.4062911318860388, 0.41152611983075865, 0.41661443973986745, 0.4215521459123159, 0.42633512622035896, 0.43095909020813516, 0.43541955559550627, 0.4397118347209833, ...], y_list=[-0.17779796195331807, -0.1781981199446925, -0.17854120062891263, -0.1788268297230473, -0.1790546058745276, -0.17922409980302767, -0.17933485336531715, -0.17938637853785994, -0.17937815631135556, -0.17930963549078366, -0.17918023139379508, -0.17898932443950882, -0.17873625861888945, -0.17842033983690092, -0.17804083411553387, -0.17759696564558425, -0.17708791467369794, -0.1765128151900022, -0.17587075249428008, -0.1751607604197522, ...]) |
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.22014526, -0.21888783, -0.21645212, -0...1, -0.21373719, -0.21798227,
-0.21996016]), y = array([-0.00455866, -0.00936149, -0.01411474, -0...9, 0.00987346, 0.00510083,
0.00027295]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.22014526, -0.21888783, -0.21645212, -0...1, -0.21373719, -0.21798227,
-0.21996016]), array([-0.00455866, -0.00936149, -0.01411474, -0...9, 0.00987346, 0.00510083,
0.00027295])], 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.22014526, -0.21888783, -0.21645212, -0...1, -0.21373719, -0.21798227,
-0.21996016]), array([-0.00455866, -0.00936149, -0.01411474, -0...9, 0.00987346, 0.00510083,
0.00027295])], 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.22014526, -0.21888783, -0.21645212, -... 0.00987346, 0.00510083,
-0.00455866]]), 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.00329855, 0.00684709, 0.010...0761, 0.98917953, 0.99342331,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=157, 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.22014526, -0.21888783, -0.21645212, -... 0.00987346, 0.00510083,
-0.00455866]]), 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.00329855, 0.00684709, 0.010...0761, 0.98917953, 0.99342331,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 157, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |