Ejemplo n.º 1
0
log.info("Getting top results..")
best_result_cmd = "python3 ./scripts/report/get_best.py -i {input} -o {output}".format(
    input=report_handler.baseFilename, output=report_file_name + "_best.csv")
subprocess.check_output(best_result_cmd.split())

if args.htmlExtract:
    log.info("Converting to html..")
    csv2html_result_cmd = "python3 ./scripts/csv2html/csv2html.py -i {input} -o {output}".format(
        input=report_file_name + ".csv", output=report_file_name + ".html")
    subprocess.check_output(csv2html_result_cmd.split())

    csv2besthtml_result_cmd = "python3 ./scripts/csv2html/csv2html.py -i {input} -o {output}".format(
        input=report_file_name + "_best.csv",
        output=report_file_name + "_best.html")
    subprocess.check_output(csv2besthtml_result_cmd.split())

utils.addComputedStatistics(report_file_name + ".csv")

utils.addComputedStatistics(report_file_name + "_best.csv")

if args.benchmark is not None:
    log.info("Generating final benchmark results..")
    full_benchmark_comp_cmd = "python3 scripts/compare_regression_reports.py -ur -b {benchmark} -r {this_run} -o {output_report} -x {output_xlsx}".format(
        benchmark=args.benchmark,
        this_run=report_file_name + ".csv",
        output_report=report_file_name + "_benchmark_written_report.rpt",
        output_xlsx=report_file_name + "_benchmark_final_report.xlsx")
    subprocess.check_output(full_benchmark_comp_cmd.split())

log.info("Done")
Ejemplo n.º 2
0
parser.add_argument('--design', '-d', required=True, help='Design Path')

parser.add_argument('--design_name', '-dn', required=True, help='Design Name')

parser.add_argument('--tag', '-t', required=True, help='Run Tag')

parser.add_argument('--run_path', '-r', default=None, help='Run Path')

parser.add_argument('--output_file', '-o', required=True, help='Output File')

args = parser.parse_args()
design = args.design
design_name = args.design_name
tag = args.tag
run_path = args.run_path
output_file = args.output_file

# Extracting Configurations
params = ConfigHandler.get_config(design, tag, run_path)
# Extracting Report
report = Report(design, tag, design_name, params, run_path).get_report()
# write into file
outputFileOpener = open(output_file, "w")
outputFileOpener.write(Report.get_header() + "," + ConfigHandler.get_header())
outputFileOpener.write("\n")
outputFileOpener.write(report)
outputFileOpener.close()

# Adding Extra Attributes computed from configs and reported statistics
utils.addComputedStatistics(output_file)