From d09ab98a4684a823124e2dddb5fa432f0901acbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Monta=C3=B1ana?= Date: Sun, 26 Sep 2021 00:25:07 +0200 Subject: [PATCH] Remove model argument & update .gitignore --- .gitignore | 1 + README.md | 2 ++ src/benchmark.py | 12 ++---------- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 9b038c5..9c87883 100644 --- a/.gitignore +++ b/.gitignore @@ -134,4 +134,5 @@ exreport/exreport_output/* exreport/.Rapp.history exreport/Rplots.pdf exreport/exreport.xlsx +exreport/.~lock.exreport.xlsx# Rplots.pdf diff --git a/README.md b/README.md index 7b6e636..c43b527 100644 --- a/README.md +++ b/README.md @@ -42,4 +42,6 @@ python src/report.py -f results/results_STree_iMac27_2021-09-22_17:13:02.json -q ```python # Do benchmark and print report python src/benchmark.py +# Do benchmark, print report and build excel file with data +python src/benchmark.py -x 1 ``` diff --git a/src/benchmark.py b/src/benchmark.py index 684a755..36978b2 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -5,14 +5,6 @@ import argparse def parse_arguments(): ap = argparse.ArgumentParser() - ap.add_argument( - "-m", - "--model", - type=str, - required=False, - default="STree", - help="model name, dfault STree", - ) ap.add_argument( "-x", "--excel", @@ -21,10 +13,10 @@ def parse_arguments(): help="Generate Excel File", ) args = ap.parse_args() - return (args.model, args.excel) + return args.excel -(model, excel) = parse_arguments() +excel = parse_arguments() benchmark = Benchmark() benchmark.compile_results() benchmark.report()