Skip to content

Commit

Permalink
Merge branch 'main' into checksum
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 authored Oct 24, 2023
2 parents 882aae2 + 436091b commit 4ac9b5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
args: ["--profile", "black"]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
rev: 23.10.0
hooks:
- id: black-jupyter
language_version: python3
Expand Down
6 changes: 3 additions & 3 deletions jetnet/datasets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def _getZenodoFileURL(record_id: int, file_name: str) -> str:

records_url = f"https://zenodo.org/api/records/{record_id}"
r = requests.get(records_url).json()
file = next(item for item in r["files"] if item["key"] == file_name)
file_url = file["links"]["self"]
md5 = file["checksum"].split("md5:")[1]
file = next(item for item in r["files"] if item["filename"] == file_name)
file_url = file["links"]["download"]
md5 = file["checksum"]
return file_url, md5


Expand Down

0 comments on commit 4ac9b5c

Please sign in to comment.