Skip to content

Commit ac886c2

Browse files
opxrd: Switched back to zenodo API
1 parent a3432e1 commit ac886c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opxrd/database/opxrd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def load(cls, root_dirpath : str, download : bool = True, *args, **kwargs) -> Pa
2626

2727
@classmethod
2828
def _download_zenodo_opxrd(cls, output_fpath : str):
29-
zenodo_url = f'https://zenodo.org/records/{cls.get_record_id()}'
30-
file_response = requests.get(url=f'{zenodo_url}/files/opxrd.zip?download=1', stream=True)
29+
zenodo_url = f'https://zenodo.org/api/records/{cls.get_record_id()}'
30+
file_response = requests.get(url=f'{zenodo_url}/files/opxrd.zip/content', stream=True)
3131

3232
total_size = int(file_response.headers.get('content-length', 0))
3333
total_chunks = (total_size // 1024) + (1 if total_size % 1024 else 0)

0 commit comments

Comments
 (0)