File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1+ figshare : " https://api.figshare.com/v2/articles/26409316"
12version : " v0.1.4"
23datasets :
34 beataml :
Original file line number Diff line number Diff line change 11# coderdata/download/downloader.py
22
3+ from importlib import resources
34from pathlib import Path
45from os import PathLike
56import os
67import requests
78import warnings
89
10+ import yaml
11+
912def download (
1013 name : str = None ,
1114 local_path : PathLike = Path .cwd (),
@@ -44,7 +47,9 @@ def download(
4447 if not local_path .exists ():
4548 Path .mkdir (local_path )
4649 # Get the dataset details
47- url = "https://api.figshare.com/v2/articles/25033697"
50+ with resources .open_text ('coderdata' , 'dataset.yml' ) as f :
51+ data_information = yaml .load (f , Loader = yaml .FullLoader )
52+ url = data_information ['figshare' ]
4853
4954 response = requests .get (url )
5055 if response .status_code != 200 :
You can’t perform that action at this time.
0 commit comments