YongchengYAO commited on
Commit
fae2c72
·
1 Parent(s): 7c7c115

minor update

Browse files
Files changed (1) hide show
  1. MedVision.py +5 -1
MedVision.py CHANGED
@@ -8620,11 +8620,15 @@ class MedVision(GeneratorBasedBuilder):
8620
  downloaded_datasets = {}
8621
  if os.path.exists(dataset_cache_file):
8622
  try:
 
8623
  with open(dataset_cache_file, "r") as f:
8624
  downloaded_datasets = json.load(f)
 
 
 
8625
  except Exception as e:
8626
  logger.warning(
8627
- f"Error loading download cache file: {dataset_cache_file}\nError: {e}"
8628
  )
8629
  downloaded_datasets = {}
8630
 
 
8620
  downloaded_datasets = {}
8621
  if os.path.exists(dataset_cache_file):
8622
  try:
8623
+ logger.info(f"Checking dataset download status from: {dataset_cache_file}")
8624
  with open(dataset_cache_file, "r") as f:
8625
  downloaded_datasets = json.load(f)
8626
+ # Print current download status
8627
+ for ds_name, status in downloaded_datasets.items():
8628
+ logger.info(f" - Dataset/Package <{ds_name}> download status: {status}")
8629
  except Exception as e:
8630
  logger.warning(
8631
+ f"Fail to read dataset status tracker file: {dataset_cache_file}\nError: {e}"
8632
  )
8633
  downloaded_datasets = {}
8634