Skip to content

Commit 5243130

Browse files
authored
Merge pull request #719 from bioimage-io/dev
Update example notebook
2 parents 5f337f6 + bd5d1fd commit 5243130

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ jobs:
189189

190190
pip-build:
191191
name: Build and publish to PyPI
192-
needs: test
192+
needs: [test, conda-build]
193193
runs-on: ubuntu-latest
194194
steps:
195195
- name: Check out the repository

example/load_model_and_create_your_own.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,11 @@
322322
}
323323
],
324324
"source": [
325+
"from io import BinaryIO\n",
326+
"\n",
325327
"for i, cover in enumerate(model.covers):\n",
326328
" downloaded_cover = download(cover)\n",
327-
" cover_data: NDArray[Any] = imread(downloaded_cover.path) # type: ignore\n",
329+
" cover_data: NDArray[Any] = imread(BinaryIO(downloaded_cover.read())) # type: ignore\n",
328330
" _ = plt.figure(figsize=(10, 10))\n",
329331
" plt.imshow(cover_data) # type: ignore\n",
330332
" plt.xticks([]) # type: ignore\n",

scripts/docs_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ def get_ref_url(
1414
>>> get_ref_url(
1515
... "class",
1616
... "Binarize",
17-
... "https://github.com/bioimage-io/core-bioimage-io-python/blob/main/bioimageio/core/proc_ops.py"
17+
... "https://github.com/bioimage-io/core-bioimage-io-python/blob/main/src/bioimageio/core/proc_ops.py"
1818
... )
19-
'https://github.com/bioimage-io/core-bioimage-io-python/blob/main/bioimageio/core/proc_ops.py#L...-L...'
19+
'https://github.com/bioimage-io/core-bioimage-io-python/blob/main/src/bioimageio/core/proc_ops.py#L...-L...'
2020
2121
"""
2222
# hotfix to handle httpx not available in pyodide, see

0 commit comments

Comments
 (0)