update dataset_script.py
Browse files- dataset_script.py +2 -4
dataset_script.py
CHANGED
@@ -52,10 +52,7 @@ _LICENSE = ""
|
|
52 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
53 |
_REPO = "https://huggingface.co/datasets/zhuwq/QuakeFlow_NC/resolve/main/data"
|
54 |
_URLS = {
|
55 |
-
"NCEDC": [
|
56 |
-
f"{_REPO}/ncedc_event_dataset_{i:03d}.h5"
|
57 |
-
for i in range(2)
|
58 |
-
]
|
59 |
}
|
60 |
|
61 |
|
@@ -115,6 +112,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
115 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
116 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
117 |
urls = _URLS[self.config.name]
|
|
|
118 |
files = dl_manager.download_and_extract(urls)
|
119 |
|
120 |
return [
|
|
|
52 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
53 |
_REPO = "https://huggingface.co/datasets/zhuwq/QuakeFlow_NC/resolve/main/data"
|
54 |
_URLS = {
|
55 |
+
"NCEDC": [f"{_REPO}/ncedc_event_dataset_{i:03d}.h5" for i in range(36)]
|
|
|
|
|
|
|
56 |
}
|
57 |
|
58 |
|
|
|
112 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
113 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
114 |
urls = _URLS[self.config.name]
|
115 |
+
# files = dl_manager.download(urls)
|
116 |
files = dl_manager.download_and_extract(urls)
|
117 |
|
118 |
return [
|