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 a3a2575
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ jobs:
- name: Set up system
run: |
sudo apt-get update -qq
sudo apt-get install git-annex
sudo wget -O- http://neuro.debian.net/lists/jammy.de-fzj.libre | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
sudo apt-key adv --recv-keys --keyserver hkps://keyserver.ubuntu.com 0xA5D32F012649A5A9
sudo apt-get update -qq
sudo apt-get install git-annex-standalone
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down
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 a3a2575

Please sign in to comment.