Skip to content

Commit

Permalink
Simplify initialization to avoid mypy issues
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Nov 9, 2024
1 parent 068289f commit 020f816
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rebench/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,11 @@ def init_environment(initial_denoise: Optional["DenoiseInitialSettings"], ui):
ui.warning('Was not able to determine the type of CPU used and its clock speed.' +
' Thus, these details will not be recorded with the data.\n')

result["software"] = []
result["software"].append({"name": "kernel", "version": u_name[3]})
result["software"].append({"name": "kernel-release", "version": u_name[2]})
result["software"].append({"name": "architecture", "version": u_name[4]})
result["software"] = [
{"name": "kernel", "version": u_name[3]},
{"name": "kernel-release", "version": u_name[2]},
{"name": "architecture", "version": u_name[4]}
]

global _environment # pylint: disable=global-statement
_environment = result
Expand Down

0 comments on commit 020f816

Please sign in to comment.