Skip to content

Commit 768d1f1

Browse files
authored
Merge pull request #59 from Leengit/resample_or_not
ENH: Support target_magnification and magnification_source parameters.
2 parents bab5dbb + 3eb2f96 commit 768d1f1

File tree

5 files changed

+183
-110
lines changed

5 files changed

+183
-110
lines changed

example/tensorflow_stream.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@
115115
"my_slide0[\"number_pixel_rows_for_chunk\"] = 2048\n",
116116
"my_slide0[\"number_pixel_columns_for_chunk\"] = 2048\n",
117117
"\n",
118-
"# For each slide, find the appropriate resolution given the desired_magnification and\n",
118+
"# For each slide, find the appropriate resolution given the target_magnification and\n",
119119
"# magnification_tolerance. In this example, we use the same parameters for each slide,\n",
120120
"# but this is not required generally.\n",
121121
"find_resolution_for_slide = hs.configure.FindResolutionForSlide(\n",
122-
" my_study0, desired_magnification=20, magnification_tolerance=0.02\n",
122+
" my_study0, target_magnification=20, magnification_source=\"native\"\n",
123123
")\n",
124124
"for slide in my_study0[\"slides\"].values():\n",
125125
" find_resolution_for_slide(slide)\n",
@@ -262,7 +262,8 @@
262262
"\n",
263263
"create_tensorflow_dataset = hs.tensorflow.CreateTensorFlowDataset()\n",
264264
"tiles = create_tensorflow_dataset(my_study_of_tiles)\n",
265-
"print(\"Finished with CreateTensorFlowDataset\")"
265+
"print(\"Finished with CreateTensorFlowDataset\")\n",
266+
"print(f\"... with tile shape = {tiles.take(1).get_single_element()[0][0].shape}\")"
266267
]
267268
},
268269
{

histomics_stream/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Whole-slide image streamer for TensorFlow."""
22

3-
__version__ = "2.1.8"
3+
__version__ = "2.2.0"
44

55
"""
66

0 commit comments

Comments
 (0)