From 32b7ec1393a6f80760f3dae415f77addd0fe3604 Mon Sep 17 00:00:00 2001 From: Zachary Hoppinen <56941602+ZachHoppinen@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:52:52 -0500 Subject: [PATCH] Update sentinel1.py --- spicy_snow/download/sentinel1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spicy_snow/download/sentinel1.py b/spicy_snow/download/sentinel1.py index a15f0fe..1e85505 100644 --- a/spicy_snow/download/sentinel1.py +++ b/spicy_snow/download/sentinel1.py @@ -119,8 +119,8 @@ def hyp3_pipeline(search_results: pd.DataFrame, job_name, existing_job_name: Uni return rtc_jobs.filter_jobs(succeeded = True) # check if you have passed quota - quota = hyp3.check_quota() - if not quota or len(search_results) > hyp3.check_quota(): + quota = hyp3.check_credits() + if not quota or len(search_results) > quota: log.warn(f'More search results ({len(search_results)}) than quota ({quota}).') resp = None while resp not in ['Y', 'N']: