ProgramComputer commited on
Commit
f5f7b8b
1 Parent(s): 3b76b0e

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +21 -21
test.py CHANGED
@@ -285,27 +285,27 @@ class Test(datasets.GeneratorBasedBuilder):
285
  for target in targets
286
  )
287
  )
288
- tmp_paths = dl_manager.download(
289
- dict( (
290
- placeholder_key,
291
- dict(
292
- (target, _URLS[target][placeholder_key])
293
- for target in targets
294
- ),
295
- )
296
- for placeholder_key in ("dev",)
297
- )
298
- )
299
- raise Exception("HELLO BEFORE")
300
- mapped_paths = {"dev":{}}
301
- for key,value in tmp_paths["dev"].items():
302
- with open(value[0], "wb") as out:
303
- mapped_paths['dev'][key] = (value[0])
304
- for tmp_path in value[1:]:
305
- with open(tmp_path, "rb") as tmp:
306
- copyfileobj(tmp, out)
307
- #tmp_path.unlink()
308
- raise Exception("HELLO")
309
  mapped_paths = mapped_paths.append(dl_manager.extract( dl_manager.download(
310
  dict( (
311
  placeholder_key,
 
285
  for target in targets
286
  )
287
  )
288
+ # tmp_paths = dl_manager.download(
289
+ # dict( (
290
+ # placeholder_key,
291
+ # dict(
292
+ # (target, _URLS[target][placeholder_key])
293
+ # for target in targets
294
+ # ),
295
+ # )
296
+ # for placeholder_key in ("dev",)
297
+ # )
298
+ # )
299
+ # raise Exception("HELLO BEFORE")
300
+ # mapped_paths = {"dev":{}}
301
+ # for key,value in tmp_paths["dev"].items():
302
+ # with open(value[0], "wb") as out:
303
+ # mapped_paths['dev'][key] = (value[0])
304
+ # for tmp_path in value[1:]:
305
+ # with open(tmp_path, "rb") as tmp:
306
+ # copyfileobj(tmp, out)
307
+ # #tmp_path.unlink()
308
+ # raise Exception("HELLO")
309
  mapped_paths = mapped_paths.append(dl_manager.extract( dl_manager.download(
310
  dict( (
311
  placeholder_key,