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.12655189664282984, 0.12540559091859174, 0.12421814479564532, 0.12298945453522597, 0.12171940199282795, 0.12040785442293735, 0.11905466426156947, 0.11765966888663112, 0.11622269030212394, 0.11474353502231935, 0.11322199354945395, 0.11165784016888769, 0.11005083257017888, 0.10840071147489504, 0.10670720024443005, 0.10497000446919506, 0.10318881154105221, 0.10136329021149633, 0.09949309013889863, 0.09757784142914527, ...], y_list = [0.23644665702264453, 0.23374611416582305, 0.2309688892154379, 0.2281149760805867, 0.2251843465828806, 0.22217695056958928, 0.21909271601812697, 0.21593154913571752, 0.21269333433711662, 0.20937793472683772, 0.20598519172401974, 0.20251492546904104, 0.1989669349086828, 0.1953409979755398, 0.19163687180943093, 0.18785429303306111, 0.18399297809647278, 0.18005262370758401, 0.17603290736945873, 0.17193348804900654, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[0.12655189664282984, 0.12540559091859174, 0.12421814479564532, 0.12298945453522597, 0.12171940199282795, 0.12040785442293735, 0.11905466426156947, 0.11765966888663112, 0.11622269030212394, 0.11474353502231935, 0.11322199354945395, 0.11165784016888769, 0.11005083257017888, 0.10840071147489504, 0.10670720024443005, 0.10497000446919506, 0.10318881154105221, 0.10136329021149633, 0.09949309013889863, 0.09757784142914527, ...], y_list=[0.23644665702264453, 0.23374611416582305, 0.2309688892154379, 0.2281149760805867, 0.2251843465828806, 0.22217695056958928, 0.21909271601812697, 0.21593154913571752, 0.21269333433711662, 0.20937793472683772, 0.20598519172401974, 0.20251492546904104, 0.1989669349086828, 0.1953409979755398, 0.19163687180943093, 0.18785429303306111, 0.18399297809647278, 0.18005262370758401, 0.17603290736945873, 0.17193348804900654, ...]) |
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.00700114, -0.01284563, -0.01793628, -0...7, 0.01143789, 0.00535711,
-0.00084046]), y = array([-0.00468565, -0.01861425, -0.03143673, -0...9, 0.0367261 , 0.02336399,
0.00947707]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.00700114, -0.01284563, -0.01793628, -0...7, 0.01143789, 0.00535711,
-0.00084046]), array([-0.00468565, -0.01861425, -0.03143673, -0...9, 0.0367261 , 0.02336399,
0.00947707])], 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.00700114, -0.01284563, -0.01793628, -0...7, 0.01143789, 0.00535711,
-0.00084046]), array([-0.00468565, -0.01861425, -0.03143673, -0...9, 0.0367261 , 0.02336399,
0.00947707])], 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.00700114, -0.01284563, -0.01793628, -... 0.0367261 , 0.02336399,
-0.00468565]]), 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.02011434, 0.0384855 , 0.053...4784, 0.93963464, 0.95918379,
1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=167, 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.00700114, -0.01284563, -0.01793628, -... 0.0367261 , 0.02336399,
-0.00468565]]), 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.02011434, 0.0384855 , 0.053...4784, 0.93963464, 0.95918379,
1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 167, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |