Skip to content

Commit

Permalink
Merge pull request #260 from galaxyproject/258-markdown-table-header
Browse files Browse the repository at this point in the history
Markdown tables
  • Loading branch information
ksuderman authored Dec 14, 2023
2 parents 528bd44 + a253ed1 commit 1a686b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion abm/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.9.0-dev.4
2.9.0-dev.5
4 changes: 1 addition & 3 deletions abm/lib/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def summarize_metrics(gi, jobs: list):

def print_markdown_table(table: list) -> None:
print('| Tool ID | History | State | Memory (GB) | Runtime (sec)|')
print('|---|---|---|---:|---:|---:|')
print('|---|---|---:|---:|---:|')
GB = 1024 * 1024 * 1024
for row in table[1:]:
history = row[2]
Expand All @@ -263,8 +263,6 @@ def print_markdown_table(table: list) -> None:
# cpu = '' if row[7] == '' else float(row[7]) / 10**9
memory = '' if row[11] == '' else f"{float(row[11]) / GB:3.3f}"
runtime = '' if row[15] == '' else f"{float(row[15]):5.1f}"
# line = ' | '.join( row[i] for i in [0,2,3,4,7,11,15])
# print(f'| {line} |')
print(f'| {tool_id} | {history} | {state} | {memory} | {runtime} |')


Expand Down

0 comments on commit 1a686b4

Please sign in to comment.