Skip to content

Commit

Permalink
remove key, although renewed elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Kanzer authored and Aaron Kanzer committed Nov 21, 2024
1 parent 9b09253 commit 71ad7df
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions linc_convert/utils/get_tiff_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@


def download_dandiset_file(dandiset_id, file_path, output_dir, instance="linc"):



"""

Check failure on line 15 in linc_convert/utils/get_tiff_data.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (ANN201)

linc_convert/utils/get_tiff_data.py:15:5: ANN201 Missing return type annotation for public function `download_dandiset_file`

Check failure on line 15 in linc_convert/utils/get_tiff_data.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (ANN001)

linc_convert/utils/get_tiff_data.py:15:28: ANN001 Missing type annotation for function argument `dandiset_id`

Check failure on line 15 in linc_convert/utils/get_tiff_data.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (ANN001)

linc_convert/utils/get_tiff_data.py:15:41: ANN001 Missing type annotation for function argument `file_path`

Check failure on line 15 in linc_convert/utils/get_tiff_data.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (ANN001)

linc_convert/utils/get_tiff_data.py:15:52: ANN001 Missing type annotation for function argument `output_dir`

Check failure on line 15 in linc_convert/utils/get_tiff_data.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (ANN001)

linc_convert/utils/get_tiff_data.py:15:64: ANN001 Missing type annotation for function argument `instance`
Downloads a specific file from a DANDI dataset using the specified instance.
Expand All @@ -33,7 +30,7 @@ def download_dandiset_file(dandiset_id, file_path, output_dir, instance="linc"):
os.makedirs(output_dir, exist_ok=True)

# Download the file
with DandiAPIClient(dandi_instance.api, token="021b9298a490b4c4fcfa020f7f672ae571a8f1f2") as client:
with DandiAPIClient(dandi_instance.api, token="") as client:
asset = client.get_dandiset(dandiset_id, "draft").get_asset_by_path(file_path)
if not asset:
raise FileNotFoundError(f"File '{file_path}' not found in dandiset '{dandiset_id}'.")
Expand Down

0 comments on commit 71ad7df

Please sign in to comment.