junzis / openap-top

Flight trajectory optimizer with non-linear optimal control

Home Page:https://openap.dev/top

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] destination cannot be a lat/lon tuple

galleon opened this issue · comments

Traceback (most recent call last):
File "flight_planning_domain.py", line 448, in
c2 = Cruise("A388", origin, (35.202362, 65.405415), 0.8)
File "/Users/alleon_g/.pyenv/versions/scikit-decide/lib/python3.8/site-packages/openap/top/cruise.py", line 15, in init
super().init(*args, **kwargs)
File "/Users/alleon_g/.pyenv/versions/scikit-decide/lib/python3.8/site-packages/openap/top/base.py", line 43, in init
self.lat2, self.lon2 = ap2["lat"], ap2["lon"]
TypeError: 'NoneType' object is not subscriptable

Indeed origin is used twice in base.py. I will submit a fix