michal commited on
Commit
fc9fd5b
·
1 Parent(s): ccab79e
src/structures/gim.py CHANGED
@@ -1,5 +1,6 @@
1
  import pandas as pd
2
  from pathlib import Path
 
3
 
4
  # Define the absolute path to the file
5
  abs_path = Path(__file__).parent.parent.parent
@@ -38,5 +39,5 @@ def load_json_data(file_path):
38
  file_path = str(abs_path / "leaderboards/all_types_years.json")
39
  GIM_SCORES = load_json_data(file_path)
40
  GIM_SCORES = GIM_SCORES.style.highlight_max(
41
- color = '#E52713',
42
  subset=GIM_SCORES.columns[-18:]).format(precision=2)
 
1
  import pandas as pd
2
  from pathlib import Path
3
+ from ..styles import highlight_color
4
 
5
  # Define the absolute path to the file
6
  abs_path = Path(__file__).parent.parent.parent
 
39
  file_path = str(abs_path / "leaderboards/all_types_years.json")
40
  GIM_SCORES = load_json_data(file_path)
41
  GIM_SCORES = GIM_SCORES.style.highlight_max(
42
+ color = highlight_color,
43
  subset=GIM_SCORES.columns[-18:]).format(precision=2)
src/structures/mat.py CHANGED
@@ -1,5 +1,6 @@
1
  import pandas as pd
2
  from pathlib import Path
 
3
 
4
  # Define the absolute path to the file
5
  abs_path = Path(__file__).parent.parent.parent
@@ -38,5 +39,5 @@ def load_json_data(file_path):
38
  file_path = str(abs_path / "leaderboards/all_types_years.json")
39
  MAT_SCORES = load_json_data(file_path)
40
  MAT_SCORES = MAT_SCORES.style.highlight_max(
41
- color = '#E52713',
42
  subset=MAT_SCORES.columns[-22:]).format(precision=2)
 
1
  import pandas as pd
2
  from pathlib import Path
3
+ from ..styles import highlight_color
4
 
5
  # Define the absolute path to the file
6
  abs_path = Path(__file__).parent.parent.parent
 
39
  file_path = str(abs_path / "leaderboards/all_types_years.json")
40
  MAT_SCORES = load_json_data(file_path)
41
  MAT_SCORES = MAT_SCORES.style.highlight_max(
42
+ color = highlight_color,
43
  subset=MAT_SCORES.columns[-22:]).format(precision=2)
src/structures/osm.py CHANGED
@@ -1,5 +1,6 @@
1
  import pandas as pd
2
  from pathlib import Path
 
3
 
4
  # Define the absolute path to the file
5
  abs_path = Path(__file__).parent.parent.parent
@@ -38,5 +39,5 @@ def load_json_data(file_path):
38
  file_path = str(abs_path / "leaderboards/all_types_years.json")
39
  OSM_SCORES = load_json_data(file_path)
40
  OSM_SCORES = OSM_SCORES.style.highlight_max(
41
- color = '#E52713',
42
  subset=OSM_SCORES.columns[-5:]).format(precision=2)
 
1
  import pandas as pd
2
  from pathlib import Path
3
+ from ..styles import highlight_color
4
 
5
  # Define the absolute path to the file
6
  abs_path = Path(__file__).parent.parent.parent
 
39
  file_path = str(abs_path / "leaderboards/all_types_years.json")
40
  OSM_SCORES = load_json_data(file_path)
41
  OSM_SCORES = OSM_SCORES.style.highlight_max(
42
+ color = highlight_color,
43
  subset=OSM_SCORES.columns[-5:]).format(precision=2)
src/structures/zaw.py CHANGED
@@ -1,5 +1,6 @@
1
  import pandas as pd
2
  from pathlib import Path
 
3
 
4
  # Define the absolute path to the file
5
  abs_path = Path(__file__).parent.parent.parent
@@ -38,5 +39,5 @@ def load_json_data(file_path):
38
  file_path = str(abs_path / "leaderboards/all_types_years.json")
39
  ZAW_SCORES = load_json_data(file_path)
40
  ZAW_SCORES = ZAW_SCORES.style.highlight_max(
41
- color = '#E52713',
42
  subset=ZAW_SCORES.columns[-12:]).format(precision=2)
 
1
  import pandas as pd
2
  from pathlib import Path
3
+ from ..styles import highlight_color
4
 
5
  # Define the absolute path to the file
6
  abs_path = Path(__file__).parent.parent.parent
 
39
  file_path = str(abs_path / "leaderboards/all_types_years.json")
40
  ZAW_SCORES = load_json_data(file_path)
41
  ZAW_SCORES = ZAW_SCORES.style.highlight_max(
42
+ color = highlight_color,
43
  subset=ZAW_SCORES.columns[-12:]).format(precision=2)