File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 " ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments