Skip to content

Commit bfee0e7

Browse files
committed
FIX: Path location is updated when symlinked
1 parent e78e323 commit bfee0e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

notebooks/basic_nodes.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,10 @@
170170
"metadata": {},
171171
"outputs": [],
172172
"source": [
173+
"in_file = '/data/ds000114/sub-01/ses-test/anat/sub-01_ses-test_T1w.nii.gz'\n",
174+
"\n",
173175
"# Specify node inputs\n",
174-
"bet.inputs.in_file = '/data/ds000114/sub-01/ses-test/anat/sub-01_ses-test_T1w.nii.gz'\n",
176+
"bet.inputs.in_file = in_file\n",
175177
"bet.inputs.out_file = '/output/node_T1w_bet.nii.gz'"
176178
]
177179
},
@@ -200,7 +202,7 @@
200202
"from nilearn.plotting import plot_anat\n",
201203
"%matplotlib inline\n",
202204
"import matplotlib.pyplot as plt\n",
203-
"plot_anat(bet.inputs.in_file, title='BET input', cut_coords=(10,10,10),\n",
205+
"plot_anat(in_file, title='BET input', cut_coords=(10,10,10),\n",
204206
" display_mode='ortho', dim=-1, draw_cross=False, annotate=False);\n",
205207
"plot_anat(res.outputs.out_file, title='BET output', cut_coords=(10,10,10),\n",
206208
" display_mode='ortho', dim=-1, draw_cross=False, annotate=False);"

0 commit comments

Comments
 (0)