Trying to reach a working mini model

This commit is contained in:
2023-08-30 23:13:34 +02:00
parent 8fdf18f6a4
commit 2665e657ed
8 changed files with 189 additions and 77 deletions

10
lib.py
View File

@@ -22,4 +22,12 @@ def get_rescuee_vessel(rescuee_name):
if rescuee_name in v.name:
return v
raise LookupError("Rescuee {} vessel not found".format(rescuee_name))
raise LookupError("Rescuee {} vessel not found".format(rescuee_name))
def get_body(name):
bodies = get_connexion().space_center.bodies
if name in bodies:
return bodies[name]
raise LookupError("Celestial body {} not found".format(name))