From dd4a59a5237055520d9af94d8acf5ee4a6ea16a9 Mon Sep 17 00:00:00 2001 From: Sabrina Krakau Date: Thu, 11 Jan 2024 09:24:59 +0100 Subject: [PATCH] Add timestamp to config example --- docs/usage/parameters.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/usage/parameters.md b/docs/usage/parameters.md index 980a85f..782ee6f 100644 --- a/docs/usage/parameters.md +++ b/docs/usage/parameters.md @@ -8,9 +8,11 @@ description: Customising parameters for the CO2e calculation. You can adjust the nf-co2footprint plugin parameters in your config file as follows: ```groovy title="nextflow.config" +def co2_timestamp = new java.util.Date().format( 'yyyy-MM-dd_HH-mm-ss') + co2footprint { - file = "${params.outdir}/co2footprint_trace.txt" - reportFile = "${params.outdir}/co2footprint_report.html" + file = "${params.outdir}/co2footprint_trace_${co2_timestamp}.txt" + reportFile = "${params.outdir}/co2footprint_report_${co2_timestamp}.html" ci = 300 pue = 1.4 }