"magic_pdf/model/vscode:/vscode.git/clone" did not exist on "e64d4fed40984f6c0b206dd6b8503d8e55982b91"
Commit ef7588b6 authored by lintangsutawika's avatar lintangsutawika
Browse files

add column as option

parent 1f6d3cd6
...@@ -259,7 +259,7 @@ class Grouper: ...@@ -259,7 +259,7 @@ class Grouper:
return res return res
def make_table(result_dict): def make_table(result_dict, column="results"):
"""Generate table of results.""" """Generate table of results."""
from pytablewriter import MarkdownTableWriter, LatexTableWriter from pytablewriter import MarkdownTableWriter, LatexTableWriter
...@@ -278,7 +278,7 @@ def make_table(result_dict): ...@@ -278,7 +278,7 @@ def make_table(result_dict):
values = [] values = []
for k, dic in result_dict["results"].items(): for k, dic in result_dict[column].items():
version = result_dict["versions"][k] version = result_dict["versions"][k]
for (mf), v in dic.items(): for (mf), v in dic.items():
m, _, f = mf.partition(",") m, _, f = mf.partition(",")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment