mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 11:58:55 +00:00
csv: handle zero-value classifiers correctly
If the value of a classifier was zero (or any other value that interprets as boolean False), it used to be coverted to an empty entry. This makes sure that the value gets correctly ropagated.
This commit is contained in:
parent
bb37c31fed
commit
bca012fccb
@ -119,7 +119,7 @@ class CsvReportProcessor(ResultProcessor):
|
||||
for ir in results:
|
||||
for metric in ir.metrics:
|
||||
row = ([ir.id, ir.spec.label, ir.iteration, metric.name] +
|
||||
[str(metric.classifiers.get(c) or '') for c in extra_columns] +
|
||||
[str(metric.classifiers.get(c, '')) for c in extra_columns] +
|
||||
[str(metric.value), metric.units or ''])
|
||||
writer.writerow(row)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user