Skip to content

Commit

Permalink
Don’t turn extra args into a string if it is None
Browse files Browse the repository at this point in the history
This fixes #215.
  • Loading branch information
smarr committed Aug 1, 2023
1 parent 429fd1c commit 413fc53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rebench/model/run_id.py
Expand Up @@ -327,13 +327,14 @@ def as_str_list(self):
return result

def as_dict(self):
extra_args = self.benchmark.extra_args
return {
'benchmark': self.benchmark.as_dict(),
'cores': self.cores,
'inputSize': self.input_size,
'varValue': self.var_value,
'machine': self.machine,
'extraArgs': str(self.benchmark.extra_args),
'extraArgs': extra_args if extra_args is None else str(extra_args),
'cmdline': self.cmdline(),
'location': self.location
}
Expand Down

0 comments on commit 413fc53

Please sign in to comment.