From 26aea67cd35863e2a96aac613f66b1902a76a92f Mon Sep 17 00:00:00 2001 From: Chris McCarthy Date: Thu, 20 Jul 2023 10:16:29 +0100 Subject: [PATCH] #1632 - Added Python version to the System Information section in the report --- benchmark/primaite_benchmark.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/benchmark/primaite_benchmark.py b/benchmark/primaite_benchmark.py index 8417e06b..55a9aed5 100644 --- a/benchmark/primaite_benchmark.py +++ b/benchmark/primaite_benchmark.py @@ -1,6 +1,7 @@ import json import platform import shutil +import sys from datetime import datetime from pathlib import Path from typing import Any, Dict, Final, Optional, Tuple, Union @@ -117,9 +118,14 @@ def _build_benchmark_latex_report( ) with doc.create(Section("System Information")): + with doc.create(Subsection("Python")): + with doc.create(Tabular("|l|l|")) as table: + table.add_hline() + table.add_row((bold("Version"), sys.version)) + table.add_hline() for section, section_data in data["system_info"].items(): if section_data: - with doc.create(Subsection(section.capitalize())): + with doc.create(Subsection(section)): if isinstance(section_data, dict): with doc.create(Tabular("|l|l|")) as table: table.add_hline()