Skip to content

Commit

Permalink
refactor: Clean-up download_yaw_files function
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldmaj committed Aug 16, 2024
1 parent 9400dae commit a4c4510
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions gnssanalysis/gn_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,15 +1010,12 @@ def download_yaw_files(download_dir: _Path, if_file_present: str = "prompt_user"
"""
ensure_folders([download_dir])
download_filepaths = []
targets = ["bds_yaw_modes.snx.gz", "qzss_yaw_modes.snx.gz", "sat_yaw_bias_rate.snx.gz"]
urls = [PRODUCT_BASE_URL + target for target in targets]

for url, target in zip(urls, targets):

files = ["bds_yaw_modes.snx.gz", "qzss_yaw_modes.snx.gz", "sat_yaw_bias_rate.snx.gz"]
for filename in files:
download_filepath = attempt_url_download(
download_dir=download_dir,
url=url,
filename=target,
url=PRODUCT_BASE_URL + filename,
filename=filename,
type_of_file="Yaw Model SNX",
if_file_present=if_file_present,
)
Expand Down

0 comments on commit a4c4510

Please sign in to comment.