Skip to content

Commit 9355c8a

Browse files
author
Stephen Aylward
committed
Fix line length and test for None.
1 parent e7ae027 commit 9355c8a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

nvidia_nims/vista_3d_remote_nim.ipynb

+6-8
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,7 @@
193193
" minv = input_image_arr.min()\n",
194194
" maxv = input_image_arr.max()\n",
195195
" 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",
199197
" print(\" The input image has Hounsfield Units in the range:\", [minv, maxv])\n",
200198
"\n",
201199
" # Post the image to file.io and get the link\n",
@@ -275,7 +273,7 @@
275273
"source": [
276274
"input_image_filename = None\n",
277275
"\n",
278-
"if input_image_filename == None:\n",
276+
"if input_image_filename is None:\n",
279277
" monai_data_directory = os.environ.get(\"MONAI_DATA_DIRECTORY\")\n",
280278
" if monai_data_directory is not None:\n",
281279
" os.makedirs(monai_data_directory, exist_ok=True)\n",
@@ -370,12 +368,12 @@
370368
{
371369
"data": {
372370
"application/vnd.jupyter.widget-view+json": {
373-
"model_id": "5bea8bd791b34f96a2b72f9ccf2a5756",
371+
"model_id": "eaba90efeb4d443183845e91f2e9fe16",
374372
"version_major": 2,
375373
"version_minor": 0
376374
},
377375
"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…"
379377
]
380378
},
381379
"metadata": {},
@@ -404,12 +402,12 @@
404402
{
405403
"data": {
406404
"application/vnd.jupyter.widget-view+json": {
407-
"model_id": "13f32fea76f04375b27bc4006e784157",
405+
"model_id": "f3c1a23351464d049d33f7aa15395faf",
408406
"version_major": 2,
409407
"version_minor": 0
410408
},
411409
"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…"
413411
]
414412
},
415413
"metadata": {},

0 commit comments

Comments
 (0)