File tree Expand file tree Collapse file tree 3 files changed +11
-12
lines changed
Expand file tree Collapse file tree 3 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1+ - bump : patch
2+ changes :
3+ fixed :
4+ - Always look for new data file versions even if we have a local copy of one.
Original file line number Diff line number Diff line change @@ -135,14 +135,13 @@ def _set_data(self):
135135 - 1
136136 ].split ("/" , 2 )
137137
138- if not Path (filename ).exists ():
139- file_path = download (
140- filepath = filename ,
141- huggingface_org = hf_org ,
142- huggingface_repo = hf_repo ,
143- gcs_bucket = bucket ,
144- )
145- filename = str (Path (file_path ))
138+ file_path = download (
139+ filepath = filename ,
140+ huggingface_org = hf_org ,
141+ huggingface_repo = hf_repo ,
142+ gcs_bucket = bucket ,
143+ )
144+ filename = str (Path (file_path ))
146145 if "cps_2023" in filename :
147146 time_period = 2023
148147 else :
Original file line number Diff line number Diff line change @@ -40,10 +40,6 @@ def download(
4040 except :
4141 logging .info ("Failed to download from Hugging Face." )
4242
43- if Path (filepath ).exists ():
44- logging .info (f"File { filepath } already exists. Skipping download." )
45- return filepath
46-
4743 if data_file .gcs_bucket is not None :
4844 logging .info ("Using Google Cloud Storage for download." )
4945 download_file_from_gcs (
You can’t perform that action at this time.
0 commit comments