Skip to content

Commit 43877a7

Browse files
committed
updating notebooks to newer updated dataset; changing wf.base_dir to /output (instead of /data/...); editing some markdown cells
1 parent bfa77cb commit 43877a7

7 files changed

+408
-307
lines changed

notebooks/basic_function_nodes.ipynb

Lines changed: 20 additions & 20 deletions
Large diffs are not rendered by default.

notebooks/basic_import_workflows.ipynb

Lines changed: 119 additions & 103 deletions
Large diffs are not rendered by default.

notebooks/basic_iteration.ipynb

Lines changed: 143 additions & 68 deletions
Large diffs are not rendered by default.

notebooks/basic_joinnodes.ipynb

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,14 @@
1717
"source": [
1818
"## Simple example\n",
1919
"\n",
20-
"Let's consider the very simple example depicted at the top of this page (since `A` is not defined, the cell will crash if you try to run):"
20+
"Let's consider the very simple example depicted at the top of this page:"
2121
]
2222
},
2323
{
24-
"cell_type": "code",
25-
"execution_count": null,
26-
"metadata": {
27-
"collapsed": false
28-
},
29-
"outputs": [],
24+
"cell_type": "markdown",
25+
"metadata": {},
3026
"source": [
27+
"```python\n",
3128
"from nipype import Node, JoinNode, Workflow\n",
3229
"\n",
3330
"# Specify fake input node A\n",
@@ -51,7 +48,8 @@
5148
"workflow.connect([(a, b, [('subject', 'subject')]),\n",
5249
" (b, c, [('out_file', 'in_file')])\n",
5350
" (c, d, [('out_file', 'in_files')])\n",
54-
" ])"
51+
" ])\n",
52+
"```"
5553
]
5654
},
5755
{
@@ -72,7 +70,7 @@
7270
},
7371
{
7472
"cell_type": "code",
75-
"execution_count": null,
73+
"execution_count": 2,
7674
"metadata": {
7775
"collapsed": true
7876
},
@@ -84,7 +82,7 @@
8482
},
8583
{
8684
"cell_type": "code",
87-
"execution_count": null,
85+
"execution_count": 3,
8886
"metadata": {
8987
"collapsed": true
9088
},
@@ -99,7 +97,7 @@
9997
},
10098
{
10199
"cell_type": "code",
102-
"execution_count": null,
100+
"execution_count": 4,
103101
"metadata": {
104102
"collapsed": false
105103
},
@@ -120,7 +118,7 @@
120118
},
121119
{
122120
"cell_type": "code",
123-
"execution_count": null,
121+
"execution_count": 5,
124122
"metadata": {
125123
"collapsed": false
126124
},
@@ -129,12 +127,12 @@
129127
"name": "stdout",
130128
"output_type": "stream",
131129
"text": [
132-
"170715-22:55:10,963 workflow INFO:\n",
130+
"170727-22:26:31,403 workflow INFO:\n",
133131
"\t Workflow joinflow settings: ['check', 'execution', 'logging']\n",
134-
"170715-22:55:10,997 workflow INFO:\n",
132+
"170727-22:26:31,441 workflow INFO:\n",
135133
"\t Running serially.\n",
136-
"170715-22:55:10,999 workflow INFO:\n",
137-
"\t Executing node joinnode in dir: /tmp/tmp0mqxl90s/joinflow/joinnode\n"
134+
"170727-22:26:31,444 workflow INFO:\n",
135+
"\t Executing node joinnode in dir: /tmp/tmp4cldpdjt/joinflow/joinnode\n"
138136
]
139137
}
140138
],
@@ -154,7 +152,7 @@
154152
},
155153
{
156154
"cell_type": "code",
157-
"execution_count": null,
155+
"execution_count": 6,
158156
"metadata": {
159157
"collapsed": false
160158
},
@@ -166,7 +164,7 @@
166164
"sqrts = [1.0, 2.0, 3.0]"
167165
]
168166
},
169-
"execution_count": null,
167+
"execution_count": 6,
170168
"metadata": {},
171169
"output_type": "execute_result"
172170
}
@@ -177,7 +175,7 @@
177175
},
178176
{
179177
"cell_type": "code",
180-
"execution_count": null,
178+
"execution_count": 7,
181179
"metadata": {
182180
"collapsed": false
183181
},
@@ -194,7 +192,7 @@
194192
"numbersJ3 = 9"
195193
]
196194
},
197-
"execution_count": null,
195+
"execution_count": 7,
198196
"metadata": {},
199197
"output_type": "execute_result"
200198
}
@@ -221,9 +219,9 @@
221219
"name": "python",
222220
"nbconvert_exporter": "python",
223221
"pygments_lexer": "ipython3",
224-
"version": "3.5.2"
222+
"version": "3.6.2"
225223
}
226224
},
227225
"nbformat": 4,
228-
"nbformat_minor": 1
226+
"nbformat_minor": 2
229227
}

notebooks/basic_mapnodes.ipynb

Lines changed: 83 additions & 83 deletions
Large diffs are not rendered by default.

notebooks/basic_model_specification.ipynb

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,19 @@
122122
"data": {
123123
"text/html": [
124124
"<div>\n",
125+
"<style>\n",
126+
" .dataframe thead tr:only-child th {\n",
127+
" text-align: right;\n",
128+
" }\n",
129+
"\n",
130+
" .dataframe thead th {\n",
131+
" text-align: left;\n",
132+
" }\n",
133+
"\n",
134+
" .dataframe tbody tr th {\n",
135+
" vertical-align: top;\n",
136+
" }\n",
137+
"</style>\n",
125138
"<table border=\"1\" class=\"dataframe\">\n",
126139
" <thead>\n",
127140
" <tr style=\"text-align: right;\">\n",
@@ -253,15 +266,15 @@
253266
{
254267
"data": {
255268
"text/plain": [
256-
"[('onsets',\n",
269+
"[('conditions', ['Finger', 'Foot', 'Lips']),\n",
270+
" ('onsets',\n",
257271
" [[10, 100, 190, 280, 370],\n",
258272
" [40, 130, 220, 310, 400],\n",
259273
" [70, 160, 250, 340, 430]]),\n",
260274
" ('durations',\n",
261275
" [[15.0, 15.0, 15.0, 15.0, 15.0],\n",
262276
" [15.0, 15.0, 15.0, 15.0, 15.0],\n",
263-
" [15.0, 15.0, 15.0, 15.0, 15.0]]),\n",
264-
" ('conditions', ['Finger', 'Foot', 'Lips'])]"
277+
" [15.0, 15.0, 15.0, 15.0, 15.0]])]"
265278
]
266279
},
267280
"execution_count": 5,
@@ -304,7 +317,7 @@
304317
"name": "python",
305318
"nbconvert_exporter": "python",
306319
"pygments_lexer": "ipython3",
307-
"version": "3.5.2"
320+
"version": "3.6.2"
308321
}
309322
},
310323
"nbformat": 4,

notebooks/basic_plugins.ipynb

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{
44
"cell_type": "markdown",
55
"metadata": {
6-
"collapsed": true,
76
"deletable": true,
87
"editable": true
98
},
@@ -79,23 +78,23 @@
7978
"metadata": {
8079
"anaconda-cloud": {},
8180
"kernelspec": {
82-
"display_name": "Python [default]",
81+
"display_name": "Python 3",
8382
"language": "python",
84-
"name": "python2"
83+
"name": "python3"
8584
},
8685
"language_info": {
8786
"codemirror_mode": {
8887
"name": "ipython",
89-
"version": 2
88+
"version": 3
9089
},
9190
"file_extension": ".py",
9291
"mimetype": "text/x-python",
9392
"name": "python",
9493
"nbconvert_exporter": "python",
95-
"pygments_lexer": "ipython2",
96-
"version": "2.7.13"
94+
"pygments_lexer": "ipython3",
95+
"version": "3.6.2"
9796
}
9897
},
9998
"nbformat": 4,
100-
"nbformat_minor": 0
99+
"nbformat_minor": 2
101100
}

0 commit comments

Comments
 (0)