Datasets:
Needs a wildcard in the download instructions
#4
by
MikeyMicah
- opened
The code for downloading specific sets needs a wildcard (*) in the allow_patterns generation:
REPO_ID = "PGLearn/PGLearn-Small"
CASES = ["14_ieee", "30_ieee"]
LOCAL_DIR = "<path/to/local/dir>"
snapshot_download(repo_id=REPO_ID, allow_patterns=[f"{case}/*" for case in CASES], repo_type="dataset", local_dir=LOCAL_DIR)
# ^^^^
Fixed in a4599e21df26e31e2ad7309dafd8f5ee13752af9, thanks!
klamike
changed discussion status to
closed