albertvillanova HF staff commited on
Commit
235318b
1 Parent(s): 46c5ce0

Update loading script

Browse files
Files changed (1) hide show
  1. monash_tsf.py +2 -2
monash_tsf.py CHANGED
@@ -46,7 +46,7 @@ _HOMEPAGE = "https://forecastingdata.org/"
46
 
47
  _LICENSE = "The Creative Commons Attribution 4.0 International License. https://creativecommons.org/licenses/by/4.0/"
48
 
49
- _ROOT_URL = "https://zenodo.org/record"
50
 
51
 
52
  @dataclass
@@ -432,7 +432,7 @@ class MonashTSF(datasets.GeneratorBasedBuilder):
432
  # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
433
  # 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.
434
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
435
- urls = f"{_ROOT_URL}/{self.config.record}/files/{self.config.file_name}"
436
  data_dir = dl_manager.download_and_extract(urls)
437
  file_path = Path(data_dir) / (self.config.file_name.split(".")[0] + ".tsf")
438
 
 
46
 
47
  _LICENSE = "The Creative Commons Attribution 4.0 International License. https://creativecommons.org/licenses/by/4.0/"
48
 
49
+ _ROOT_URL = "data"
50
 
51
 
52
  @dataclass
 
432
  # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
433
  # 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.
434
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
435
+ urls = f"{_ROOT_URL}/{self.config.file_name}"
436
  data_dir = dl_manager.download_and_extract(urls)
437
  file_path = Path(data_dir) / (self.config.file_name.split(".")[0] + ".tsf")
438