Skip to content

Commit c8522b3

Browse files
committed
fixing the matlab example - adding extension to the image filename
1 parent 1fafc34 commit c8522b3

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

notebooks/advanced_create_interfaces.ipynb

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@
12141214
"from scipy.io import savemat\n",
12151215
"\n",
12161216
"# 1. save the image in matlab format as tmp_image.mat\n",
1217-
"tmp_image = 'tmp_image'\n",
1217+
"tmp_image = 'tmp_image.mat'\n",
12181218
"data = nb.load(in_file).get_data()\n",
12191219
"savemat(tmp_image, {b'data': data}, do_compression=False)"
12201220
]
@@ -1298,7 +1298,7 @@
12981298
"\n",
12991299
" def _run_interface(self, runtime): \n",
13001300
" # Save the image in matlab format as tmp_image.mat\n",
1301-
" tmp_image = 'tmp_image'\n",
1301+
" tmp_image = 'tmp_image.mat'\n",
13021302
" data = nb.load(self.inputs.in_file).get_data()\n",
13031303
" savemat(tmp_image, {b'data': data}, do_compression=False)\n",
13041304
" \n",
@@ -1374,7 +1374,7 @@
13741374
"cell_type": "code",
13751375
"execution_count": null,
13761376
"metadata": {
1377-
"solution2": "hidden",
1377+
"solution2": "shown",
13781378
"solution2_first": true
13791379
},
13801380
"outputs": [],
@@ -1386,7 +1386,7 @@
13861386
"cell_type": "code",
13871387
"execution_count": null,
13881388
"metadata": {
1389-
"solution2": "hidden"
1389+
"solution2": "shown"
13901390
},
13911391
"outputs": [],
13921392
"source": [
@@ -1411,7 +1411,7 @@
14111411
"\n",
14121412
" def _run_interface(self, runtime): \n",
14131413
" # Save the image in matlab format as tmp_image.mat\n",
1414-
" tmp_image = 'tmp_image'\n",
1414+
" tmp_image = 'tmp_image.mat'\n",
14151415
" data = nb.load(self.inputs.in_file).get_data()\n",
14161416
" savemat(tmp_image, {b'data': data}, do_compression=False)\n",
14171417
" \n",
@@ -1495,11 +1495,18 @@
14951495
"source": [
14961496
"!cat volume.txt"
14971497
]
1498+
},
1499+
{
1500+
"cell_type": "code",
1501+
"execution_count": null,
1502+
"metadata": {},
1503+
"outputs": [],
1504+
"source": []
14981505
}
14991506
],
15001507
"metadata": {
15011508
"kernelspec": {
1502-
"display_name": "Python [default]",
1509+
"display_name": "Python 3",
15031510
"language": "python",
15041511
"name": "python3"
15051512
},
@@ -1513,7 +1520,7 @@
15131520
"name": "python",
15141521
"nbconvert_exporter": "python",
15151522
"pygments_lexer": "ipython3",
1516-
"version": "3.6.5"
1523+
"version": "3.7.8"
15171524
}
15181525
},
15191526
"nbformat": 4,

0 commit comments

Comments
 (0)