Skip to content

Commit 56ba738

Browse files
authored
1191 fixes deprecated args (Project-MONAI#1192)
Signed-off-by: Wenqi Li <[email protected]> Fixes Project-MONAI#1191 ### Description dimensions -> spatial_dims see also https://github.com/Project-MONAI/MONAI/pull/5901/files#diff-de1bb0722a11b59358d44127ab828343ddd49e2b0478ff9f9d07e96a6f91c5de ### Checks <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [ ] Avoid including large-size files in the PR. - [ ] Clean up long text outputs from code cells in the notebook. - [ ] For security purposes, please check the contents and remove any sensitive info such as user names and private key. - [ ] Ensure (1) hyperlinks and markdown anchors are working (2) use relative paths for tutorial repo files (3) put figure and graphs in the `./figure` folder - [ ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>` Signed-off-by: Wenqi Li <[email protected]>
1 parent 6b10acb commit 56ba738

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

deepgrow/ignite/inference.ipynb

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"cells": [
33
{
4-
"attachments": {},
54
"cell_type": "markdown",
65
"metadata": {},
76
"source": [
@@ -32,7 +31,6 @@
3231
]
3332
},
3433
{
35-
"attachments": {},
3634
"cell_type": "markdown",
3735
"metadata": {},
3836
"source": [
@@ -49,7 +47,6 @@
4947
]
5048
},
5149
{
52-
"attachments": {},
5350
"cell_type": "markdown",
5451
"metadata": {},
5552
"source": [
@@ -461,7 +458,7 @@
461458
" Spacingd(keys='image', pixdim=pixdim, mode='bilinear'),\n",
462459
"\n",
463460
" AddGuidanceFromPointsd(ref_image='image', guidance='guidance', foreground='foreground', background='background',\n",
464-
" dimensions=dimensions),\n",
461+
" spatial_dims=dimensions),\n",
465462
" Fetch2DSliced(keys='image', guidance='guidance'),\n",
466463
" AddChanneld(keys='image'),\n",
467464
"\n",
@@ -655,7 +652,7 @@
655652
],
656653
"metadata": {
657654
"kernelspec": {
658-
"display_name": "Python 3",
655+
"display_name": "Python 3 (ipykernel)",
659656
"language": "python",
660657
"name": "python3"
661658
},
@@ -669,7 +666,7 @@
669666
"name": "python",
670667
"nbconvert_exporter": "python",
671668
"pygments_lexer": "ipython3",
672-
"version": "3.8.10 (default, Nov 14 2022, 12:59:47) \n[GCC 9.4.0]"
669+
"version": "3.8.13"
673670
},
674671
"vscode": {
675672
"interpreter": {

deepgrow/ignite/inference_3d.ipynb

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"cells": [
33
{
4-
"attachments": {},
54
"cell_type": "markdown",
65
"metadata": {},
76
"source": [
@@ -18,7 +17,6 @@
1817
]
1918
},
2019
{
21-
"attachments": {},
2220
"cell_type": "markdown",
2321
"metadata": {},
2422
"source": [
@@ -35,7 +33,6 @@
3533
]
3634
},
3735
{
38-
"attachments": {},
3936
"cell_type": "markdown",
4037
"metadata": {},
4138
"source": [
@@ -183,7 +180,7 @@
183180
" AsChannelFirstd(keys='image'),\n",
184181
" Spacingd(keys='image', pixdim=pixdim, mode='bilinear'),\n",
185182
" AddGuidanceFromPointsd(ref_image='image', guidance='guidance', foreground='foreground', background='background',\n",
186-
" dimensions=dimensions),\n",
183+
" spatial_dims=dimensions),\n",
187184
" AddChanneld(keys='image'),\n",
188185
" SpatialCropGuidanced(keys='image', guidance='guidance', spatial_size=roi_size),\n",
189186
" Resized(keys='image', spatial_size=model_size, mode='area'),\n",
@@ -333,7 +330,7 @@
333330
],
334331
"metadata": {
335332
"kernelspec": {
336-
"display_name": "Python 3",
333+
"display_name": "Python 3 (ipykernel)",
337334
"language": "python",
338335
"name": "python3"
339336
},
@@ -347,7 +344,7 @@
347344
"name": "python",
348345
"nbconvert_exporter": "python",
349346
"pygments_lexer": "ipython3",
350-
"version": "3.8.10 (default, Nov 14 2022, 12:59:47) \n[GCC 9.4.0]"
347+
"version": "3.8.13"
351348
},
352349
"vscode": {
353350
"interpreter": {

0 commit comments

Comments
 (0)