Skip to content

Commit

Permalink
Merge pull request #70 from SnowEx/deprecated_check_quota_fix
Browse files Browse the repository at this point in the history
Update sentinel1.py
  • Loading branch information
gbrencher authored Feb 21, 2024
2 parents 65bc0f3 + 32b7ec1 commit 371302d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spicy_snow/download/sentinel1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']:
Expand Down

0 comments on commit 371302d

Please sign in to comment.