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.9357141127058504, 0.933125745912268, 0.9305307803441752, 0.9279292288538825, 0.9253211042537013, 0.9227064193165233, 0.9200851867763876, 0.9174574193290579, 0.9148231296325939, 0.9121823303079258, 0.9095350339394254, 0.9068812530754833, 0.9042210002290852, 0.9015542878783795, 0.898881128467262, 0.8962015344059405, 0.8935155180715271, 0.8908230918086011, 0.8881242679297983, 0.8854190587163825, ...], y_list = [-0.6836980497772767, -0.6858794451899282, -0.688055990272887, -0.6902276655685035, -0.6923944515406405, -0.6945563285737387, -0.6967132769718878, -0.6988652769578813, -0.7010123086722678, -0.7031543521723976, -0.7052913874314588, -0.7074233943375038, -0.7095503526924701, -0.7116722422112012, -0.7137890425204417, -0.715900733157848, -0.7180072935709617, -0.7201087031162068, -0.7222049410578512, -0.7242959865669772, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.9357141127058504, 0.933125745912268, 0.9305307803441752, 0.9279292288538825, 0.9253211042537013, 0.9227064193165233, 0.9200851867763876, 0.9174574193290579, 0.9148231296325939, 0.9121823303079258, 0.9095350339394254, 0.9068812530754833, 0.9042210002290852, 0.9015542878783795, 0.898881128467262, 0.8962015344059405, 0.8935155180715271, 0.8908230918086011, 0.8881242679297983, 0.8854190587163825, ...], y_list=[-0.6836980497772767, -0.6858794451899282, -0.688055990272887, -0.6902276655685035, -0.6923944515406405, -0.6945563285737387, -0.6967132769718878, -0.6988652769578813, -0.7010123086722678, -0.7031543521723976, -0.7052913874314588, -0.7074233943375038, -0.7095503526924701, -0.7116722422112012, -0.7137890425204417, -0.715900733157848, -0.7180072935709617, -0.7201087031162068, -0.7222049410578512, -0.7242959865669772, ...]) |
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([-1.87662316e-01, -2.04554591e-01, -2.2056....32127775e-01, -1.51388438e-01, -1.69922839e-01]), y = array([-1.57933841e-02, -3.75068784e-02, -5.9059....93685174e-02, 2.77464042e-02, 5.99078956e-03]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-1.87662316e-01, -2.04554591e-01, -2.2056....32127775e-01, -1.51388438e-01, -1.69922839e-01]), array([-1.57933841e-02, -3.75068784e-02, -5.9059....93685174e-02, 2.77464042e-02, 5.99078956e-03])], 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([-1.87662316e-01, -2.04554591e-01, -2.2056....32127775e-01, -1.51388438e-01, -1.69922839e-01]), array([-1.57933841e-02, -3.75068784e-02, -5.9059....93685174e-02, 2.77464042e-02, 5.99078956e-03])], 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.18766232, -0.20455459, -0.2205642 , .... 0.04936852,
0.0277464 , -0.01579338]]), 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.00546489, 0.01079817, 0.015...8755, 0.98299041, 0.98874259,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=997, 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.18766232, -0.20455459, -0.2205642 , .... 0.04936852,
0.0277464 , -0.01579338]]), 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.00546489, 0.01079817, 0.015...8755, 0.98299041, 0.98874259,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 997, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |