Skip to content

Commit 650ff45

Browse files
authored
Merge pull request miykael#176 from effigies/mnt/ci_check
FIX: Nipype 1.7 compatibility
2 parents ec85d5a + 0ca3dd8 commit 650ff45

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

generate.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ generate_docker() {
1515
--user=neuro \
1616
--workdir /home/neuro \
1717
--miniconda \
18-
conda_install="python=3.7 pytest jupyter jupyterlab jupyter_contrib_nbextensions
18+
conda_install="python=3.8 pytest jupyter jupyterlab jupyter_contrib_nbextensions
1919
traits pandas matplotlib scikit-learn scikit-image seaborn nbformat nb_conda" \
2020
pip_install="https://github.com/nipy/nipype/tarball/master
21-
https://github.com/INCF/pybids/tarball/0.7.1
21+
pybids==0.13.1
2222
nilearn datalad[full] nipy duecredit nbval niflow-nipype1-workflows" \
2323
create_env="neuro" \
2424
activate=True \
@@ -57,7 +57,7 @@ generate_singularity() {
5757
conda_install="python=3.7 pytest jupyter jupyterlab jupyter_contrib_nbextensions
5858
traits pandas matplotlib scikit-learn scikit-image seaborn nbformat nb_conda" \
5959
pip_install="https://github.com/nipy/nipype/tarball/master
60-
https://github.com/INCF/pybids/tarball/0.7.1
60+
pybids==0.13.1
6161
nilearn datalad[full] nipy duecredit nbval niflow-nipype1-workflows" \
6262
create_env="neuro" \
6363
activate=True \

notebooks/basic_data_input_bids.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
"metadata": {},
141141
"outputs": [],
142142
"source": [
143-
"layout.get(subject='01', suffix='bold', extensions=['nii', 'nii.gz'])"
143+
"layout.get(subject='01', suffix='bold', extension=['.nii', '.nii.gz'])"
144144
]
145145
},
146146
{
@@ -156,7 +156,7 @@
156156
"metadata": {},
157157
"outputs": [],
158158
"source": [
159-
"layout.get(subject='01', suffix='bold', extensions=['nii', 'nii.gz'], return_type='file')"
159+
"layout.get(subject='01', suffix='bold', extension=['.nii', '.nii.gz'], return_type='file')"
160160
]
161161
},
162162
{

notebooks/basic_function_interface.ipynb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@
247247
"# Run node\n",
248248
"try:\n",
249249
" rndArray.run()\n",
250-
"except(NameError) as err:\n",
251-
" print(\"NameError:\", err)\n",
250+
"except Exception as err:\n",
251+
" print(err)\n",
252252
"else:\n",
253253
" raise"
254254
]
@@ -259,8 +259,12 @@
259259
"source": [
260260
"As you can see, if we don't import `random` inside the scope of the function, we receive the following error:\n",
261261
"\n",
262-
" NameError: global name 'random' is not defined\n",
263-
" Interface Function failed to run. "
262+
" Exception raised while executing Node rndArray_node.\n",
263+
"\n",
264+
" Traceback (most recent call last):\n",
265+
" [...]\n",
266+
" File \"<string>\", line 3, in get_random_array\n",
267+
" NameError: name 'random' is not defined"
264268
]
265269
}
266270
],

0 commit comments

Comments
 (0)