Closed skrakau closed 11 months ago
Fix non-matching traceRecord and CO2Record entries in co2 report task lists:
only the values of the traceRecords and CO2Records were passed to renderJsonData() and the entries do not match by position.
traceRecord
CO2Record
renderJsonData()
I changed it to use the Map<TaskId,CO2Record> instead and access the corresponding CO2Record via the taskId key.
Map<TaskId,CO2Record>
taskId
Fixes: https://github.com/qbic-pipelines/nf-co2footprint/issues/27
Fix non-matching traceRecord and CO2Record entries in co2 report task lists:
only the values of the
traceRecord
s andCO2Record
s were passed torenderJsonData()
and the entries do not match by position.I changed it to use the
Map<TaskId,CO2Record>
instead and access the correspondingCO2Record
via thetaskId
key.Fixes: https://github.com/qbic-pipelines/nf-co2footprint/issues/27