Skip to content

Commit

Permalink
DOC: Separate print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
bnmajor committed Dec 12, 2023
1 parent baaa34a commit fd26eb4
Showing 1 changed file with 39 additions and 11 deletions.
50 changes: 39 additions & 11 deletions examples/integrations/itk/SelectROI.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@
"cell_type": "code",
"execution_count": 6,
"metadata": {
"tags": ["skip-execution"]
"tags": [
"skip-execution"
]
},
"outputs": [],
"source": [
Expand All @@ -163,7 +165,9 @@
"cell_type": "code",
"execution_count": 7,
"metadata": {
"tags": ["skip-execution"]
"tags": [
"skip-execution"
]
},
"outputs": [
{
Expand Down Expand Up @@ -192,7 +196,9 @@
"cell_type": "code",
"execution_count": 8,
"metadata": {
"tags": ["skip-execution"]
"tags": [
"skip-execution"
]
},
"outputs": [],
"source": [
Expand All @@ -204,7 +210,9 @@
"cell_type": "code",
"execution_count": 9,
"metadata": {
"tags": ["skip-execution"]
"tags": [
"skip-execution"
]
},
"outputs": [
{
Expand Down Expand Up @@ -232,7 +240,11 @@
{
"cell_type": "code",
"execution_count": 10,
"metadata": { "tags": ["skip-execution"] },
"metadata": {
"tags": [
"skip-execution"
]
},
"outputs": [],
"source": [
"# Request the slice information for the ROI\n",
Expand All @@ -251,25 +263,35 @@
{
"cell_type": "code",
"execution_count": 11,
"metadata": { "tags": ["skip-execution"] },
"metadata": {
"tags": [
"skip-execution"
]
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(slice(0, 249, None), slice(0, 349, None), slice(84, 149, None)) (slice(0, 249, None), slice(0, 349, None), slice(84, 149, None))\n"
"Slices for loaded scale: (slice(0, 249, None), slice(0, 349, None), slice(84, 149, None))\n",
"Slices with default parameter: (slice(0, 249, None), slice(0, 349, None), slice(84, 149, None))\n"
]
}
],
"source": [
"# The results should match\n",
"print(roi_slices, default_roi_slices)"
"print(f'Slices for loaded scale: {roi_slices}')\n",
"print(f'Slices with default parameter: {default_roi_slices}')"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": { "tags": ["skip-execution"] },
"metadata": {
"tags": [
"skip-execution"
]
},
"outputs": [],
"source": [
"# Create a new viewer using only the data in the ROI determined above\n",
Expand All @@ -280,7 +302,9 @@
"cell_type": "code",
"execution_count": 13,
"metadata": {
"tags": ["skip-execution"]
"tags": [
"skip-execution"
]
},
"outputs": [
{
Expand Down Expand Up @@ -336,7 +360,11 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": { "tags": ["skip-execution"] },
"metadata": {
"tags": [
"skip-execution"
]
},
"outputs": [],
"source": []
}
Expand Down

0 comments on commit fd26eb4

Please sign in to comment.