Spaces:
Build error
Build error
Refactor isco_hierarchy assignment in MetricTemplate1
Browse files- metric_template_1.py +1 -1
metric_template_1.py
CHANGED
@@ -97,7 +97,7 @@ class MetricTemplate1(evaluate.Metric):
|
|
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
|
101 |
print("ISCO hierarchy dictionary created")
|
102 |
print(self.isco_hierarchy)
|
103 |
|
|
|
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 = isco.create_hierarchy_tree(isco_json)
|
101 |
print("ISCO hierarchy dictionary created")
|
102 |
print(self.isco_hierarchy)
|
103 |
|