Skip to content

Commit

Permalink
re-orangenize the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cirrusasf committed Mar 19, 2024
1 parent 0787b01 commit 58c7c2d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/hyp3_autorift/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,14 +594,14 @@ def main():
product_file, browse_file = process(g1, g2, parameter_file=args.parameter_file, naming_scheme=args.naming_scheme)
thumbnail_file = create_thumbnail(browse_file)

if args.publish:
prefix = get_opendata_prefix(product_file)
upload_file_to_s3(product_file, OPEN_DATA_BUCKET, prefix)
upload_file_to_s3(browse_file, OPEN_DATA_BUCKET, prefix)
upload_file_to_s3(thumbnail_file, OPEN_DATA_BUCKET, prefix)

if args.bucket:
upload_file_to_s3(product_file, args.bucket, args.bucket_prefix)
upload_file_to_s3(browse_file, args.bucket, args.bucket_prefix)
thumbnail_file = create_thumbnail(browse_file)
upload_file_to_s3(thumbnail_file, args.bucket, args.bucket_prefix)

if args.publish:
prefix = get_opendata_prefix(product_file)
upload_file_to_s3(product_file, OPEN_DATA_BUCKET, prefix)
upload_file_to_s3(browse_file, OPEN_DATA_BUCKET, prefix)
upload_file_to_s3(thumbnail_file, OPEN_DATA_BUCKET, prefix)

0 comments on commit 58c7c2d

Please sign in to comment.