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.5830551145295407, -0.583822691514221, -0.584570831555711, -0.5852995251631834, -0.5860087621911501, -0.5866985318375311, -0.5873688226416622, -0.5880196224822266, -0.588650918575107, -0.5892626974711536, -0.5898549450538586, -0.5904276465369318, -0.5909807864617732, -0.591514348708414, -0.5920283164248878, -0.5925226721601267, -0.5929973977252158, -0.5934524742581658, -0.5938878822071061, -0.5943036013269243, ...], y_list = [-0.21988866668178284, -0.22170986634586776, -0.22352368474273854, -0.22533006737608322, -0.22712895957755286, -0.22892030649693823, -0.23070405309241368, -0.232480144120827, -0.23424852412803193, -0.23600913743924223, -0.23776192814941144, -0.23950684011360854, -0.24124381693739358, -0.24297280201188529, -0.2446937382805355, -0.2464065686765328, -0.24811123566593654, -0.24980768146141497, -0.2514958479676572, -0.2531756767714126, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.5830551145295407, -0.583822691514221, -0.584570831555711, -0.5852995251631834, -0.5860087621911501, -0.5866985318375311, -0.5873688226416622, -0.5880196224822266, -0.588650918575107, -0.5892626974711536, -0.5898549450538586, -0.5904276465369318, -0.5909807864617732, -0.591514348708414, -0.5920283164248878, -0.5925226721601267, -0.5929973977252158, -0.5934524742581658, -0.5938878822071061, -0.5943036013269243, ...], y_list=[-0.21988866668178284, -0.22170986634586776, -0.22352368474273854, -0.22533006737608322, -0.22712895957755286, -0.22892030649693823, -0.23070405309241368, -0.232480144120827, -0.23424852412803193, -0.23600913743924223, -0.23776192814941144, -0.23950684011360854, -0.24124381693739358, -0.24297280201188529, -0.2446937382805355, -0.2464065686765328, -0.24811123566593654, -0.24980768146141497, -0.2514958479676572, -0.2531756767714126, ...]) |
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.39553904, -0.39840481, -0.40124839, -0...2, -0.38680786, -0.38974063,
-0.392651 ]), y = array([-0.00101168, -0.00327688, -0.00554189, -0...8, 0.00578374, 0.00351876,
0.00125357]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.39553904, -0.39840481, -0.40124839, -0...2, -0.38680786, -0.38974063,
-0.392651 ]), array([-0.00101168, -0.00327688, -0.00554189, -0...8, 0.00578374, 0.00351876,
0.00125357])], 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.39553904, -0.39840481, -0.40124839, -0...2, -0.38680786, -0.38974063,
-0.392651 ]), array([-0.00101168, -0.00327688, -0.00554189, -0...8, 0.00578374, 0.00351876,
0.00125357])], 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.39553904, -0.39840481, -0.40124839, .... 0.00578374,
0.00351876, -0.00101168]]), 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.00189627, 0.00378345, 0.005...2381, 0.99425656, 0.99618016,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=507, 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.39553904, -0.39840481, -0.40124839, .... 0.00578374,
0.00351876, -0.00101168]]), 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.00189627, 0.00378345, 0.005...2381, 0.99425656, 0.99618016,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 507, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |