danieldux commited on
Commit
cd7ee4f
1 Parent(s): 57da4b3

Refactor ISCO hierarchy creation in MetricTemplate1

Browse files
Files changed (1) hide show
  1. metric_template_1.py +1 -3
metric_template_1.py CHANGED
@@ -96,9 +96,7 @@ class MetricTemplate1(evaluate.Metric):
96
  # Download and prepare the ISCO structure csv file
97
  isco_csv = dl_manager.download_and_extract(ISCO_HIERARCHY_URL)
98
  print(f"ISCO CSV file downloaded")
99
- self.isco_hierarchy = isco.create_hierarchy(
100
- os.path.join(isco_csv, "isco_structure.csv")
101
- )
102
  print("ISCO hierarchy created")
103
  print(self.isco_hierarchy)
104
 
 
96
  # Download and prepare the ISCO structure csv file
97
  isco_csv = dl_manager.download_and_extract(ISCO_HIERARCHY_URL)
98
  print(f"ISCO CSV file downloaded")
99
+ self.isco_hierarchy = isco.create_hierarchy(isco_csv)
 
 
100
  print("ISCO hierarchy created")
101
  print(self.isco_hierarchy)
102