Skip to content

Commit 7ddb045

Browse files
committed
FIX: removes the derivative dependencies
1 parent f76a56e commit 7ddb045

5 files changed

+92
-221
lines changed

notebooks/basic_iteration.ipynb

Lines changed: 18 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
{
1919
"cell_type": "code",
2020
"execution_count": null,
21-
"metadata": {
22-
"collapsed": true
23-
},
21+
"metadata": {},
2422
"outputs": [],
2523
"source": [
2624
"from nipype import Node, Workflow\n",
@@ -42,9 +40,7 @@
4240
{
4341
"cell_type": "code",
4442
"execution_count": null,
45-
"metadata": {
46-
"collapsed": true
47-
},
43+
"metadata": {},
4844
"outputs": [],
4945
"source": [
5046
"isosmooth = Node(IsotropicSmooth(), name='iso_smooth')"
@@ -60,9 +56,7 @@
6056
{
6157
"cell_type": "code",
6258
"execution_count": null,
63-
"metadata": {
64-
"collapsed": true
65-
},
59+
"metadata": {},
6660
"outputs": [],
6761
"source": [
6862
"isosmooth.iterables = (\"fwhm\", [4, 8, 16])"
@@ -78,9 +72,7 @@
7872
{
7973
"cell_type": "code",
8074
"execution_count": null,
81-
"metadata": {
82-
"collapsed": true
83-
},
75+
"metadata": {},
8476
"outputs": [],
8577
"source": [
8678
"# Create the workflow\n",
@@ -104,9 +96,7 @@
10496
{
10597
"cell_type": "code",
10698
"execution_count": null,
107-
"metadata": {
108-
"collapsed": true
109-
},
99+
"metadata": {},
110100
"outputs": [],
111101
"source": [
112102
"# Visualize the detailed graph\n",
@@ -125,9 +115,7 @@
125115
{
126116
"cell_type": "code",
127117
"execution_count": null,
128-
"metadata": {
129-
"collapsed": true
130-
},
118+
"metadata": {},
131119
"outputs": [],
132120
"source": [
133121
"!tree /output/smoothflow -I '*txt|*pklz|report*|*.json|*js|*.dot|*.html'"
@@ -143,9 +131,7 @@
143131
{
144132
"cell_type": "code",
145133
"execution_count": null,
146-
"metadata": {
147-
"collapsed": true
148-
},
134+
"metadata": {},
149135
"outputs": [],
150136
"source": [
151137
"%pylab inline\n",
@@ -182,9 +168,7 @@
182168
{
183169
"cell_type": "code",
184170
"execution_count": null,
185-
"metadata": {
186-
"collapsed": true
187-
},
171+
"metadata": {},
188172
"outputs": [],
189173
"source": [
190174
"# First, let's specify the list of subjects\n",
@@ -201,9 +185,7 @@
201185
{
202186
"cell_type": "code",
203187
"execution_count": null,
204-
"metadata": {
205-
"collapsed": true
206-
},
188+
"metadata": {},
207189
"outputs": [],
208190
"source": [
209191
"from nipype import IdentityInterface\n",
@@ -222,15 +204,14 @@
222204
{
223205
"cell_type": "code",
224206
"execution_count": null,
225-
"metadata": {
226-
"collapsed": true
227-
},
207+
"metadata": {},
228208
"outputs": [],
229209
"source": [
230210
"from os.path import join as opj\n",
231211
"from nipype.interfaces.io import SelectFiles, DataSink\n",
232212
"\n",
233-
"anat_file = opj('derivatives', 'fmriprep', '{subject_id}', 'anat', '{subject_id}_t1w_preproc.nii.gz')\n",
213+
"anat_file = opj('{subject_id}', 'ses-test', 'anat', '{subject_id}_ses-test_T1w.nii.gz')\n",
214+
"\n",
234215
"templates = {'anat': anat_file}\n",
235216
"\n",
236217
"selectfiles = Node(SelectFiles(templates,\n",
@@ -258,9 +239,7 @@
258239
{
259240
"cell_type": "code",
260241
"execution_count": null,
261-
"metadata": {
262-
"collapsed": true
263-
},
242+
"metadata": {},
264243
"outputs": [],
265244
"source": [
266245
"! ls -l /output/datasink/anat_files/"
@@ -285,7 +264,6 @@
285264
"cell_type": "code",
286265
"execution_count": null,
287266
"metadata": {
288-
"collapsed": true,
289267
"solution2": "hidden",
290268
"solution2_first": true
291269
},
@@ -298,7 +276,6 @@
298276
"cell_type": "code",
299277
"execution_count": null,
300278
"metadata": {
301-
"collapsed": true,
302279
"solution2": "hidden"
303280
},
304281
"outputs": [],
@@ -315,7 +292,6 @@
315292
"cell_type": "code",
316293
"execution_count": null,
317294
"metadata": {
318-
"collapsed": true,
319295
"solution2": "hidden"
320296
},
321297
"outputs": [],
@@ -335,7 +311,6 @@
335311
"cell_type": "code",
336312
"execution_count": null,
337313
"metadata": {
338-
"collapsed": true,
339314
"solution2": "hidden"
340315
},
341316
"outputs": [],
@@ -354,21 +329,21 @@
354329
"metadata": {
355330
"anaconda-cloud": {},
356331
"kernelspec": {
357-
"display_name": "Python [conda env:cos1]",
332+
"display_name": "Python 3",
358333
"language": "python",
359-
"name": "conda-env-cos1-py"
334+
"name": "python3"
360335
},
361336
"language_info": {
362337
"codemirror_mode": {
363338
"name": "ipython",
364-
"version": 2
339+
"version": 3
365340
},
366341
"file_extension": ".py",
367342
"mimetype": "text/x-python",
368343
"name": "python",
369344
"nbconvert_exporter": "python",
370-
"pygments_lexer": "ipython2",
371-
"version": "2.7.12"
345+
"pygments_lexer": "ipython3",
346+
"version": "3.6.3"
372347
}
373348
},
374349
"nbformat": 4,

0 commit comments

Comments
 (0)