Skip to content

Commit 7042c8d

Browse files
committed
fix: implement @jdkent's suggestion for ICA-AROMA version retrieval [skip ci]
1 parent 7a1fa11 commit 7042c8d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ RUN mkdir -p /opt/ICA-AROMA && \
112112
curl -sSL "https://github.com/maartenmennes/ICA-AROMA/archive/v0.4.4-beta.tar.gz" \
113113
| tar -xzC /opt/ICA-AROMA --strip-components 1 && \
114114
chmod +x /opt/ICA-AROMA/ICA_AROMA.py
115-
ENV PATH=/opt/ICA-AROMA:$PATH
115+
ENV PATH="/opt/ICA-AROMA:$PATH" \
116+
AROMA_VERSION="0.4.4-beta"
116117

117118
# Installing and setting up miniconda
118119
RUN curl -sSLO https://repo.continuum.io/miniconda/Miniconda3-4.5.11-Linux-x86_64.sh && \

fmriprep/workflows/bold/confounds.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
.. autofunction:: init_ica_aroma_wf
1010
1111
"""
12+
from os import getenv
1213
from nipype.pipeline import engine as pe
1314
from nipype.interfaces import utility as niu, fsl
1415
from nipype.algorithms import confounds as nac
@@ -694,7 +695,7 @@ def _getusans_func(image, thresh):
694695
TSV2JSON(index_column='IC', output=None, enforce_case=True,
695696
additional_metadata={'Method': {
696697
'Name': 'ICA-AROMA',
697-
'Version': '0.3-beta'}}),
698+
'Version': getenv('AROMA_VERSION', 'n/a')}}),
698699
name='ica_aroma_metadata_fmt')
699700

700701
ds_report_ica_aroma = pe.Node(

0 commit comments

Comments
 (0)