Updated dumpsoftwareversions.py to match the pipeline template (#2045)

* Updated dumpsoftwareversions.py to match the pipeline template

* Fixed the test

Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
master
Matthieu Muffato 2 years ago committed by GitHub
parent f0a86eaf5b
commit de7b50fdd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -58,11 +58,12 @@ versions_by_module = {}
for process, process_versions in versions_by_process.items():
module = process.split(":")[-1]
try:
assert versions_by_module[module] == process_versions, (
"We assume that software versions are the same between all modules. "
"If you see this error-message it means you discovered an edge-case "
"and should open an issue in nf-core/tools. "
)
if versions_by_module[module] != process_versions:
raise AssertionError(
"We assume that software versions are the same between all modules. "
"If you see this error-message it means you discovered an edge-case "
"and should open an issue in nf-core/tools. "
)
except KeyError:
versions_by_module[module] = process_versions

@ -42,7 +42,7 @@ workflow test_custom_dumpsoftwareversions {
// cases where subworkflows have a module with the same name.
fastqc1 ( input )
fastqc2 ( input )
MULTIQC ( fastqc2.out.zip.collect { it[1] }, [[],[]] )
MULTIQC ( fastqc2.out.zip.collect { it[1] }, [], [], [] )
fastqc1
.out

Loading…
Cancel
Save