danieldux commited on
Commit
43c2909
1 Parent(s): 4197e21

Add ISCO JSON file and update ISCO hierarchy loading

Browse files
Files changed (1) hide show
  1. metric_template_1.py +2 -1
metric_template_1.py CHANGED
@@ -94,9 +94,10 @@ class MetricTemplate1(evaluate.Metric):
94
 
95
  # Download and prepare the ISCO structure csv file
96
  isco_csv = dl_manager.download_and_extract(ISCO_CSV_URL)
 
97
  print(f"ISCO CSV file downloaded")
98
  # self.isco_hierarchy = isco.create_hierarchy_dict(isco_csv)
99
- self.isco_hierarchy: dict = json.load(ISCO_JSON_URL)
100
  print("ISCO hierarchy dictionary created")
101
  print(self.isco_hierarchy)
102
 
 
94
 
95
  # Download and prepare the ISCO structure csv file
96
  isco_csv = dl_manager.download_and_extract(ISCO_CSV_URL)
97
+ isco_json = dl_manager.download_and_extract(ISCO_JSON_URL)
98
  print(f"ISCO CSV file downloaded")
99
  # self.isco_hierarchy = isco.create_hierarchy_dict(isco_csv)
100
+ self.isco_hierarchy: dict = json.load(isco_json)
101
  print("ISCO hierarchy dictionary created")
102
  print(self.isco_hierarchy)
103