Skip to content

Commit

Permalink
Href fix, version change.
Browse files Browse the repository at this point in the history
  • Loading branch information
knc6 committed Dec 31, 2023
1 parent 6ae5124 commit 18276c9
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 52 deletions.
2 changes: 1 addition & 1 deletion jarvis_leaderboard/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Version number."""
__version__ = "2023.12.12"
__version__ = "2023.12.15"
74 changes: 24 additions & 50 deletions jarvis_leaderboard/rebuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ def update_individual_index_md(
# for i in glob.glob("jarvis_leaderboard/benchmarks/*/*.csv.zip"):

if key in i and extra_key in i:
#TODO: Distinguish MLFF and FF
# TODO: Distinguish MLFF and FF
p = i.split("/")[-1].split(".csv.zip")[0]
homepage.append(p)
# print ('index pages',homepage)
Expand Down Expand Up @@ -1161,6 +1161,7 @@ def update_individual_index_md(
)
for i, j in selected.items():
if len(md_path.split("/")) == 2:
# e.g.https://pages.nist.gov/jarvis_leaderboard/
# if md_path == "docs/index.md":
# desc = get_benchmark_description(i)
# print('len 2',i,desc)
Expand All @@ -1169,35 +1170,25 @@ def update_individual_index_md(
temp
+ "<tr>"
+ "<td>"
+ '<a href="./'
+ j["category"]
# + j["method"]
+ '" target="_blank">'
# + '<a href="./'
+ j["category"]
# + j["method"]
+ "</a>"
# + j["method"]
# + '" target="_blank">'
# + j["category"]
# + "</a>"
+ "</td>"
+ "<td>"
+ '<a href="./'
# + j["dataset"]+'_'
+ j["category"]
# + j["method"]
+ "/"
+ j["subcat"]
# + j["submod"]
+ '" target="_blank">'
# + '<a href="./'
# + j["category"]
# + "/"
+ j["subcat"]
# + j["submod"]
+ "</a>"
# + j["submod"]
# + '" target="_blank">'
# + j["subcat"]
# + "</a>"
+ "</td>"
+ "<td>"
+ '<a href="./'
# + j["method"]
+ j["category"]
+ "/"
# + j["submod"]
+ j["subcat"]
+ "/"
+ j["dataset"]
Expand All @@ -1208,7 +1199,6 @@ def update_individual_index_md(
+ "_"
+ j["prop"]
+ "</a>"
# + j["prop"]
+ "</td>"
+ "<td>"
+ j["team"]
Expand All @@ -1228,55 +1218,39 @@ def update_individual_index_md(
+ "<td>"
+ str(j["dataset_size"])
+ "</td>"
# + "<td>"
# + str(j["date_submitted"])
# + "</td>"
+ "</tr>"
)
elif len(md_path.split("/")) == 3:
# e.g.https://pages.nist.gov/jarvis_leaderboard/EXP/
# print('len 3',i)
base = "."
temp = (
temp
+ "<tr>"
+ "<td>"
+ '<a href= "'
+ base
+ "/"
+ j["category"]
# + j["method"]
+ '" target="_blank">'
# + '<a href= "'
# + base
# + "/"
+ j["category"]
# + j["method"]
+ "</a>"
# + j["method"]
# + '" target="_blank">'
# + j["category"]
# + "</a>"
+ "</td>"
+ "<td>"
+ '<a href= "'
+ base
+ "/"
# + '<a href="http://127.0.0.1:8000/knc6/jarvis_leaderboard/'
# + j["method"]
# + '<a href= "'
# + base
# + "/"
+ j["subcat"]
# + j["submod"]
+ '" target="_blank">'
+ j["subcat"]
# + j["submod"]
+ "</a>"
# + j["submod"]
# + '" target="_blank">'
# + j["subcat"]
# + "</a>"
+ "</td>"
+ "<td>"
+ '<a href= "'
+ base
+ "/"
# + '<a href="http://127.0.0.1:8000/knc6/jarvis_leaderboard/'
# + j["method"]
# + "/"
+ j["subcat"]
# + j["submod"]
+ "/"
# + "/"
+ j["dataset"]
+ "_"
+ j["prop"]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="jarvis_leaderboard", # Replace with your own username
version="2023.12.12",
version="2023.12.15",
author="Kamal Choudhary",
author_email="[email protected]",
description="jarvis_leaderboard",
Expand Down

0 comments on commit 18276c9

Please sign in to comment.