From 9b467dfaac01c18b5ae6e659b1321c1495894dc1 Mon Sep 17 00:00:00 2001 From: Michaela Date: Sat, 9 Oct 2021 16:24:50 +1100 Subject: [PATCH] improvements --- predict_updater/lambda_function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/predict_updater/lambda_function.py b/predict_updater/lambda_function.py index 9a97f70..62ca30f 100644 --- a/predict_updater/lambda_function.py +++ b/predict_updater/lambda_function.py @@ -243,7 +243,7 @@ def compare_launch_sites(sites, launch_estimate, altitude=0): # print(sites[launch_site]) # print(launch_site_range) - _allocate_range = min(LAUNCH_ALLOCATE_RANGE_MAX, altitude*LAUNCH_ALLOCATE_RANGE_SCALING) + _allocate_range = min(LAUNCH_ALLOCATE_RANGE_MAX, max(LAUNCH_ALLOCATE_RANGE_MIN, altitude*LAUNCH_ALLOCATE_RANGE_SCALING)) if launch_site_range < _allocate_range: return {'site':launch_site, 'range': launch_site_range}