When trying to set up poliastro.iod.vallado.lambert, I receive the following error when I set short=False (long path transfer):
Traceback (most recent call last):
File "C:/Users/pawit/.PyCharmCE2019.3/config/scratches/scratch_4.py", line 11, in <module>
v = lambert_v(k, r0, rf, tof, short=short, numiter=numiter, rtol=rtol).__next__()
File "C:\Users\pawit\Documents\research_env\lib\site-packages\poliastro\iod\vallado.py", line 48, in lambert
v0, v = vallado_fast(k_, r0_, r_, tof_, short, numiter, rtol)
File "C:\Users\pawit\Documents\research_env\lib\site-packages\poliastro\core\iod.py", line 151, in vallado
raise RuntimeError("Maximum number of iterations reached")
RuntimeError: Maximum number of iterations reached
Here is my minimal (non)working example:
from astropy import units as u, constants as c
from poliastro.iod.vallado import lambert as lambert_v
k = c.GM_earth.to(u.km ** 3/ u.s ** 2)
r0 = [10000., 0, 0] * u.km
rf = [8000., -5000, 0] * u.km
tof = (2 * u.hour).to(u.s)
short = False
numiter = 1000
rtol = 1e-6
v = lambert_v(k, r0, rf, tof, short=short, numiter=numiter, rtol=rtol).__next__()
print('v1 = ')
print(v[0])
print('v2 = ')
print(v[1])
It has worked for all of the tests I gave it when short=True, and failed every time short=False.
When trying to set up poliastro.iod.vallado.lambert, I receive the following error when I set short=False (long path transfer):
Here is my minimal (non)working example:
It has worked for all of the tests I gave it when short=True, and failed every time short=False.