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 = [1.1588892569145184, 1.1600194970756124, 1.1611381906224336, 1.1622453344459576, 1.1633409253121814, 1.1644249598619647, 1.1654974346108564, 1.1665583459489195, 1.1676076901405434, 1.168645463324257, 1.1696716616348533, 1.1706862806813485, 1.171689316386114, 1.1726807643805506, 1.1736606201694284, 1.1746288791306194, 1.1755855365148127, 1.176530587445241, 1.1774640269173928, 1.1783858497987258, ...], y_list = [0.32997972868891595, 0.3316942534814536, 0.33340547665386855, 0.3351133834775487, 0.3368179592069016, 0.33851918907854167, 0.34021705831046206, 0.3419115521012162, 0.3436026556290917, 0.3452903540512952, 0.34697463270483414, 0.3486554762466261, 0.35033287003176217, 0.352006799122502, 0.35367724855633237, 0.35534420334510847, 0.35700764847417016, 0.3586675689014966, 0.3603239495568318, 0.3619767753408369, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[1.1588892569145184, 1.1600194970756124, 1.1611381906224336, 1.1622453344459576, 1.1633409253121814, 1.1644249598619647, 1.1654974346108564, 1.1665583459489195, 1.1676076901405434, 1.168645463324257, 1.1696716616348533, 1.1706862806813485, 1.171689316386114, 1.1726807643805506, 1.1736606201694284, 1.1746288791306194, 1.1755855365148127, 1.176530587445241, 1.1774640269173928, 1.1783858497987258, ...], y_list=[0.32997972868891595, 0.3316942534814536, 0.33340547665386855, 0.3351133834775487, 0.3368179592069016, 0.33851918907854167, 0.34021705831046206, 0.3419115521012162, 0.3436026556290917, 0.3452903540512952, 0.34697463270483414, 0.3486554762466261, 0.35033287003176217, 0.352006799122502, 0.35367724855633237, 0.35534420334510847, 0.35700764847417016, 0.3586675689014966, 0.3603239495568318, 0.3619767753408369, ...]) |
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.15911281, -0.1658603 , -0.1722517 , -0...12903512, -0.13696879, -0.14464275, -0.15203228]), y = array([-0.00232892, -0.01256779, -0.02277959, -0...03847382, 0.02833509, 0.01814278, 0.00791492]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.15911281, -0.1658603 , -0.1722517 , -0...12903512, -0.13696879, -0.14464275, -0.15203228]), array([-0.00232892, -0.01256779, -0.02277959, -0...03847382, 0.02833509, 0.01814278, 0.00791492])], 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.15911281, -0.1658603 , -0.1722517 , -0...12903512, -0.13696879, -0.14464275, -0.15203228]), array([-0.00232892, -0.01256779, -0.02277959, -0...03847382, 0.02833509, 0.01814278, 0.00791492])], 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.15911281, -0.1658603 , -0.1722517 , .... 0.02833509,
0.01814278, -0.00232892]]), 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.00341989, 0.00677976, 0.010... 0.98585957, 0.98945004, 0.99300826, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=895, 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.15911281, -0.1658603 , -0.1722517 , .... 0.02833509,
0.01814278, -0.00232892]]), 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.00341989, 0.00677976, 0.010... 0.98585957, 0.98945004, 0.99300826, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 895, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |