Skip to content

Commit

Permalink
None is no longer valid
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsantana11 committed Aug 7, 2024
1 parent 12ca5f6 commit 71f3086
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion clouddrift/adapters/gdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def fetch_netcdf(url: str, file: str):
file : str
Name of the file to save.
"""
download_with_progress([(url, file, None)])
download_with_progress([(url, file)])


def decode_date(t):
Expand Down
2 changes: 1 addition & 1 deletion clouddrift/adapters/gdp1h.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def download(
filelist = sorted(rng.choice(filelist, n_random_id, replace=False))

download_with_progress(
[(f"{url}/{f}", os.path.join(tmp_path, f), None) for f in filelist]
[(f"{url}/{f}", os.path.join(tmp_path, f)) for f in filelist]
)
# Download the metadata so we can order the drifter IDs by end date.
gdp_metadata = gdp.get_gdp_metadata()
Expand Down
5 changes: 1 addition & 4 deletions clouddrift/adapters/gdp6h.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,7 @@ def download(
drifter_urls = list(rng.choice(drifter_urls, n_random_id, replace=False))

download_with_progress(
[
(url, os.path.join(tmp_path, os.path.basename(url)), None)
for url in drifter_urls
]
[(url, os.path.join(tmp_path, os.path.basename(url))) for url in drifter_urls]
)

# Download the metadata so we can order the drifter IDs by end date.
Expand Down

0 comments on commit 71f3086

Please sign in to comment.