Skip to content

Commit 07c023a

Browse files
committed
add correct reference to the code
1 parent e7af62a commit 07c023a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source/build.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ def load_benchmark_data():
3434
"../.results", on_missing="raise"
3535
).toframe()
3636
# TODO(niels): Get the code from the results DataFrame
37-
results["Code"] = "https://github.com/DeepLabCut/DeepLabCut"
3837
df = (
39-
results.reset_index()[["method", "Code", "benchmark", "RMSE", "mAP"]]
38+
results.reset_index()[["method", "code", "benchmark", "RMSE", "mAP"]]
4039
.rename(
4140
columns=dict(
4241
benchmark="Dataset", method="Model", RMSE="RMSE (detections)", mAP="mAP"
@@ -57,7 +56,7 @@ def load_benchmark_data():
5756
]
5857

5958
def _add_links(line):
60-
line["Model"] = '<a href="{Code}" target="_blank">{Model}</a>'.format(**line)
59+
line["Model"] = '<a href="{code}" target="_blank">{Model}</a>'.format(**line)
6160
return line
6261

6362
df = df.reset_index().apply(_add_links, axis=1)

0 commit comments

Comments
 (0)