Skip to content

Commit

Permalink
Incorporate suggestions made by Eric (fix of tempfile import and use,…
Browse files Browse the repository at this point in the history
… typo).

Signed-off-by: Virginia Fernandez <[email protected]>
  • Loading branch information
Virginia Fernandez committed Sep 11, 2024
1 parent 8eec20d commit c7a243e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion generation/2d_autoencoderkl/2d_autoencoderkl_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"id": "2caa73e1",
"metadata": {},
"source": [
"## Set up environment"
"## Setup environment"
]
},
{
Expand Down Expand Up @@ -79,6 +79,7 @@
"import os\n",
"import shutil\n",
"import time\n",
"import tempfile\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import torch\n",
Expand Down
4 changes: 2 additions & 2 deletions generation/3d_autoencoderkl/3d_autoencoderkl_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"source": [
"import os\n",
"import shutil\n",
"import tempfile\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import torch\n",
Expand Down Expand Up @@ -117,8 +118,7 @@
],
"source": [
"directory = os.environ.get(\"MONAI_DATA_DIRECTORY\")\n",
"root_dir = \"/tmp/tmp0_29f8jr\"\n",
"# root_dir = tempfile.mkdtemp() if directory is None else directory\n",
"root_dir = tempfile.mkdtemp() if directory is None else directory\n",
"print(root_dir)"
]
},
Expand Down

0 comments on commit c7a243e

Please sign in to comment.