Skip to content

Commit

Permalink
raise error if both gslc-bucket and granules are provided
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPlayer3 committed Oct 2, 2024
1 parent 795b71c commit ef0d7d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hyp3_srg/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ def time_series(
if not sbas_dir.exists():
mkdir(sbas_dir)

if granules and gslc_bucket:
raise ValueError('One of a list of granules or a s3 bucket must be provided, but got both.')

if granules == []:
if gslc_bucket is None:
raise ValueError('Either a list of granules or a s3 bucket must be provided, but got neither.')
Expand Down

0 comments on commit ef0d7d1

Please sign in to comment.