nextflow-io / nf-co2footprint

[WIP] A Nextflow plugin to estimate the CO2 footprint of pipeline runs.
https://nextflow-io.github.io/nf-co2footprint/
Apache License 2.0
11 stars 4 forks source link

Fix non-matching traceRecord and CO2Record entries #33

Closed skrakau closed 11 months ago

skrakau commented 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.

I changed it to use the Map<TaskId,CO2Record> instead and access the corresponding CO2Record via the taskId key.

Fixes: https://github.com/qbic-pipelines/nf-co2footprint/issues/27