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.6703058928634915, -0.6737674627079809, -0.6771787553385943, -0.6805391936716837, -0.6838481892311434, -0.6871051417810945, -0.6903094389450165, -0.6934604558106723, -0.6965575545200888, -0.6996000838438606, -0.7025873787389764, -0.7055187598893239, -0.7083935332279885, -0.7112109894404143, -0.7139704034474036, -0.7166710338669328, -0.7193121224536382, -0.7218928935147938, -0.7244125533015217, -0.7268702893738831, ...], y_list = [-1.4909425599244366, -1.4855944087038122, -1.480135401927961, -1.4745652420208286, -1.4688836190361434, -1.463090210474424, -1.4571846810915732, -1.451166682698779, -1.4450358539534565, -1.4387918201409284, -1.4324341929465343, -1.425962570217841, -1.41937653571662, -1.4126756588602076, -1.405859494451894, -1.39892758239992, -1.3918794474246647, -1.3847145987535856, -1.3774325298034393, -1.3700327178492848, ...] |
| /var/www/cgi-bin/ds_orbit.py in Q_get_smoothed_orbit(x_list=[-0.6703058928634915, -0.6737674627079809, -0.6771787553385943, -0.6805391936716837, -0.6838481892311434, -0.6871051417810945, -0.6903094389450165, -0.6934604558106723, -0.6965575545200888, -0.6996000838438606, -0.7025873787389764, -0.7055187598893239, -0.7083935332279885, -0.7112109894404143, -0.7139704034474036, -0.7166710338669328, -0.7193121224536382, -0.7218928935147938, -0.7244125533015217, -0.7268702893738831, ...], y_list=[-1.4909425599244366, -1.4855944087038122, -1.480135401927961, -1.4745652420208286, -1.4688836190361434, -1.463090210474424, -1.4571846810915732, -1.451166682698779, -1.4450358539534565, -1.4387918201409284, -1.4324341929465343, -1.425962570217841, -1.41937653571662, -1.4126756588602076, -1.405859494451894, -1.39892758239992, -1.3918794474246647, -1.3847145987535856, -1.3774325298034393, -1.3700327178492848, ...]) |
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.3742142 , -0.39558418, -0.41562093, -0...27212246, -0.30052841, -0.32686823, -0.35136516]), y = array([-0.02103159, -0.0455901 , -0.06999687, -0...07676659, 0.05268094, 0.0282262 , 0.00360749]), s undefined, per undefined |
| /usr/lib/python3/dist-packages/scipy/interpolate/_fitpack_py.py in splprep(x=[array([-0.3742142 , -0.39558418, -0.41562093, -0...27212246, -0.30052841, -0.32686823, -0.35136516]), array([-0.02103159, -0.0455901 , -0.06999687, -0...07676659, 0.05268094, 0.0282262 , 0.00360749])], 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.3742142 , -0.39558418, -0.41562093, -0...27212246, -0.30052841, -0.32686823, -0.35136516]), array([-0.02103159, -0.0455901 , -0.06999687, -0...07676659, 0.05268094, 0.0282262 , 0.00360749])], 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([[-3.74214202e-01, -3.95584178e-01, -4.156...e-02, 2.82261966e-02,
-2.10315940e-02]]), 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.00714987, 0.01408525, 0.020... 0.96892111, 0.97710063, 0.98499447, 1. ]), ub=0, ue=1, k=3, task=0, s=0.0, t=array([], dtype=float64), full_output=0, nest=325, 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([[-3.74214202e-01, -3.95584178e-01, -4.156...e-02, 2.82261966e-02,
-2.10315940e-02]]), 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.00714987, 0.01408525, 0.020... 0.96892111, 0.97710063, 0.98499447, 1. ]), ub = 0, ue = 1, k = 3, task = 0, ipar = False, s = 0.0, nest = 325, wrk = array([], dtype=float64), iwrk = array([], dtype=int32), per = True |