Skip to content

Commit 37bf8a2

Browse files
authored
Merge pull request #45 from skrakau/add_co2e_description
Add co2e description
2 parents 80c0ff4 + 56eceb3 commit 37bf8a2

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

plugins/nf-co2footprint/src/resources/CO2FootprintReportTemplate.html

+7-4
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ <h4>Workflow execution completed unsuccessfully!</h4>
151151
<dd class="col-sm-9">version ${workflow.nextflow.version}, build ${workflow.nextflow.build} (${workflow.nextflow.timestamp})</dd>
152152
</dl>
153153

154-
<dt>Total CO2 footprint measures</dt>
154+
<dt>Total CO2e footprint measures</dt>
155155
<dl class="row small">
156-
<dt class="col-sm-3">Total CO2 emission</dt>
156+
<dt class="col-sm-3">Total CO2e emission</dt>
157157
<dd class="col-sm-9">${co2_totals.co2}g</dd>
158158

159159
<dt class="col-sm-3">Total energy consumption</dt>
@@ -191,8 +191,11 @@ <h4>Workflow execution completed unsuccessfully!</h4>
191191
</div>
192192

193193
<div class="container">
194-
<h2 id="resources" style="padding-top: 80px;">CO2 Footprint Measures</h2>
195-
<p>These plots give an overview of the distribution of resource usage for each process.</p>
194+
<h2 id="resources" style="padding-top: 80px;">CO2e Footprint Measures</h2>
195+
<p>These plots give an overview of the distribution of resource usage for each process.
196+
A CO<sub>2</sub> equivalent (CO<sub>2</sub>e) is a metric used to compare the emissions from various greenhouse gases based on their impact on global warming.
197+
For this, the amounts of other gases are converted to the amount of CO<sub>2</sub> that would have the same impact on global warming (over a 100-year period).
198+
</p>
196199

197200
<h4>CO2e</h4>
198201
<ul class="nav nav-tabs" id="co2eplot_tabs" role="tablist">

plugins/nf-co2footprint/src/resources/assets/CO2FootprintReportTemplate.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ $(function() {
102102
var energy_tickformat = (max <= 4) ? ('.2f') : ('.3s');
103103

104104

105-
Plotly.newPlot('co2eplot', co2e_data, { title: 'CO2 emission', yaxis: {title: 'CO2 emission (g)', tickformat: co2e_tickformat, rangemode: 'tozero'} });
105+
Plotly.newPlot('co2eplot', co2e_data, { title: 'CO2e emission', yaxis: {title: 'CO2e emission (g)', tickformat: co2e_tickformat, rangemode: 'tozero'} });
106106
Plotly.newPlot('energyplot', energy_data, { title: 'Energy consumption', yaxis: {title: 'Energy consumption (Wh)', tickformat: energy_tickformat, rangemode: 'tozero'} });
107107

108108
// Convert to readable units
@@ -211,10 +211,10 @@ $(function() {
211211

212212
// Column titles
213213
var energyConsumptionTitle = 'energy consumption (mWh)'; // Default column title
214-
var co2EmissionsTitle = 'CO2 emissions (mg)';
214+
var co2EmissionsTitle = 'CO2e emissions (mg)';
215215
if ($('#nf-table-humanreadable').val() == 'true') {
216216
energyConsumptionTitle = 'energy consumption'; // Change the column title if the button is selected
217-
co2EmissionsTitle = 'CO2 emissions';
217+
co2EmissionsTitle = 'CO2e emissions';
218218
}
219219

220220
var table = $('#tasks_table').DataTable({

0 commit comments

Comments
 (0)