Skip to content

Commit 3e49b47

Browse files
committed
Updated notebooks to use CMU image crop
1 parent b8ceeb4 commit 3e49b47

File tree

2 files changed

+152
-67
lines changed

2 files changed

+152
-67
lines changed

notebooks/Zarr_and_Dask_for_large-scale_imaging-Part-1.ipynb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@
605605
},
606606
"outputs": [],
607607
"source": [
608-
"z_grp = tifffile.imread(\"CMU-1.svs\", aszarr=True)\n",
608+
"z_grp = tifffile.imread(r\"C:\\Users\\Public\\Documents\\WSI_example\\CMU-1.svs\", aszarr=True)\n",
609609
"da_arr = da.from_zarr(z_grp, component=\"0\")"
610610
]
611611
},
@@ -701,7 +701,7 @@
701701
},
702702
"outputs": [],
703703
"source": [
704-
"da_sel = da_arr[10000:10000 + 2048, 10000:10000 + 2048]"
704+
"da_sel = da_arr[16_000:16_000 + 2048, 8_000:8_000 + 2048]"
705705
]
706706
},
707707
{
@@ -713,15 +713,6 @@
713713
"da_sel"
714714
]
715715
},
716-
{
717-
"cell_type": "code",
718-
"execution_count": null,
719-
"metadata": {},
720-
"outputs": [],
721-
"source": [
722-
"da_sel.compute()"
723-
]
724-
},
725716
{
726717
"cell_type": "markdown",
727718
"metadata": {
@@ -803,6 +794,15 @@
803794
"source": [
804795
"plt.imshow(arr_nuclei, cmap=\"gray\")"
805796
]
797+
},
798+
{
799+
"cell_type": "code",
800+
"execution_count": null,
801+
"metadata": {},
802+
"outputs": [],
803+
"source": [
804+
"plt.imshow(arr_nuclei[500:750, 250:500], cmap=\"gray\")"
805+
]
806806
}
807807
],
808808
"metadata": {
@@ -811,7 +811,7 @@
811811
"provenance": []
812812
},
813813
"kernelspec": {
814-
"display_name": "Python 3 (ipykernel)",
814+
"display_name": "scale-up",
815815
"language": "python",
816816
"name": "python3"
817817
},

0 commit comments

Comments
 (0)