Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
matrss committed Jun 12, 2024
1 parent c200591 commit 9f655c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/datalad_cds/download_cds.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def __call__(
options = []
if lazy:
options.append("--fast")
options.append("--verifiable")
ds.repo.add_url_to_file(pathobj, url, options=options)
if save:
msg = (
Expand Down
2 changes: 1 addition & 1 deletion tests/test_download_cds.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ def test_download_cds_lazy(
)
assert (
os.readlink(dataset.pathobj / "download.grib")
== ".git/annex/objects/5J/pV/URL--cds&cv1-eyJkYXRhc2V0IjoicmVhbmFs-77566133ebfe9220aefbeed5a58b6972/URL--cds&cv1-eyJkYXRhc2V0IjoicmVhbmFs-77566133ebfe9220aefbeed5a58b6972"
== ".git/annex/objects/69/qm/VURL--cds&cv1-eyJkYXRhc2V0IjoicmVhbmFs-77566133ebfe9220aefbeed5a58b6972/VURL--cds&cv1-eyJkYXRhc2V0IjoicmVhbmFs-77566133ebfe9220aefbeed5a58b6972"
)

0 comments on commit 9f655c5

Please sign in to comment.