|
193 | 193 | " minv = input_image_arr.min()\n",
|
194 | 194 | " maxv = input_image_arr.max()\n",
|
195 | 195 | " if minv < -1024 or maxv > 3071:\n",
|
196 |
| - " print(\n", |
197 |
| - " \"WARNING: The input image should have Hounsfield Units in the range [-1024, 3071]. Performance will be degraded.\"\n", |
198 |
| - " )\n", |
| 196 | + " print(\"WARNING: Input image intensities should within [-1024, 3071]. Performance will be degraded.\")\n", |
199 | 197 | " print(\" The input image has Hounsfield Units in the range:\", [minv, maxv])\n",
|
200 | 198 | "\n",
|
201 | 199 | " # Post the image to file.io and get the link\n",
|
|
275 | 273 | "source": [
|
276 | 274 | "input_image_filename = None\n",
|
277 | 275 | "\n",
|
278 |
| - "if input_image_filename == None:\n", |
| 276 | + "if input_image_filename is None:\n", |
279 | 277 | " monai_data_directory = os.environ.get(\"MONAI_DATA_DIRECTORY\")\n",
|
280 | 278 | " if monai_data_directory is not None:\n",
|
281 | 279 | " os.makedirs(monai_data_directory, exist_ok=True)\n",
|
|
370 | 368 | {
|
371 | 369 | "data": {
|
372 | 370 | "application/vnd.jupyter.widget-view+json": {
|
373 |
| - "model_id": "5bea8bd791b34f96a2b72f9ccf2a5756", |
| 371 | + "model_id": "eaba90efeb4d443183845e91f2e9fe16", |
374 | 372 | "version_major": 2,
|
375 | 373 | "version_minor": 0
|
376 | 374 | },
|
377 | 375 | "text/plain": [
|
378 |
| - "Widget(value='<iframe src=\"http://localhost:61896/index.html?ui=P_0x21780090a00_0&reconnect=auto\" class=\"pyvis…" |
| 376 | + "Widget(value='<iframe src=\"http://localhost:57016/index.html?ui=P_0x24afb46b280_0&reconnect=auto\" class=\"pyvis…" |
379 | 377 | ]
|
380 | 378 | },
|
381 | 379 | "metadata": {},
|
|
404 | 402 | {
|
405 | 403 | "data": {
|
406 | 404 | "application/vnd.jupyter.widget-view+json": {
|
407 |
| - "model_id": "13f32fea76f04375b27bc4006e784157", |
| 405 | + "model_id": "f3c1a23351464d049d33f7aa15395faf", |
408 | 406 | "version_major": 2,
|
409 | 407 | "version_minor": 0
|
410 | 408 | },
|
411 | 409 | "text/plain": [
|
412 |
| - "Widget(value='<iframe src=\"http://localhost:61896/index.html?ui=P_0x21786e637c0_1&reconnect=auto\" class=\"pyvis…" |
| 410 | + "Widget(value='<iframe src=\"http://localhost:57016/index.html?ui=P_0x24a8d5a76d0_1&reconnect=auto\" class=\"pyvis…" |
413 | 411 | ]
|
414 | 412 | },
|
415 | 413 | "metadata": {},
|
|
0 commit comments