Skip to content

Commit 39e3da7

Browse files
committed
Merge branch 'bump_spec' into dev + black
# Conflicts: # dev/env-dev.yaml # dev/env-full.yaml # dev/env-gpu.yaml # dev/env-py38.yaml # setup.py
2 parents d50c0c4 + 49081f9 commit 39e3da7

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,10 @@ may be controlled with the `LOGURU_LEVEL` environment variable.
364364

365365
## Changelog
366366

367+
### 0.9.0 (coming soon)
368+
369+
- update to [bioimageio.spec 0.5.4.2](https://github.com/bioimage-io/spec-bioimage-io/blob/main/changelog.md#bioimageiospec-0542)
370+
367371
### 0.8.0
368372

369373
- breaking: removed `decimals` argument from bioimageio CLI and `bioimageio.core.commands.test()`

example/model_usage.ipynb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"# type: ignore\n",
3333
"dry_run: bool = True\n",
3434
"\n",
35+
"\n",
3536
"def install_missing(name: str, version: str):\n",
3637
" if dry_run:\n",
3738
" print(f\"Missing dependency {name}; would install {name}=={version}\")\n",
@@ -108,12 +109,13 @@
108109
" # TODO: add plt.imshow\n",
109110
"\n",
110111
"else:\n",
112+
"\n",
111113
" def show_images(images: Mapping[str, Tensor]):\n",
112114
" v = napari.Viewer()\n",
113115
" for name, tensor in images.items():\n",
114116
" im = tensor.data.data\n",
115117
" print(f\"napari viewer: adding {name}\")\n",
116-
" _ = v.add_image(im, name=name)\n"
118+
" _ = v.add_image(im, name=name)"
117119
]
118120
},
119121
{
@@ -206,7 +208,9 @@
206208
" raise TypeError(\"Invalid model description\")\n",
207209
"elif not isinstance(model, ModelDescr):\n",
208210
" model.validation_summary.display()\n",
209-
" raise TypeError(f\"This notebook requires the latest model format version {ModelDescr.implemented_format_version}.\")\n"
211+
" raise TypeError(\n",
212+
" f\"This notebook requires the latest model format version {ModelDescr.implemented_format_version}.\"\n",
213+
" )"
210214
]
211215
},
212216
{
@@ -1670,7 +1674,7 @@
16701674
"source": [
16711675
"from bioimageio.core import Sample\n",
16721676
"\n",
1673-
"sample = Sample(members={\"raw\": test_input_tensor}, stat=None, id=\"sample-from-numpy\")\n",
1677+
"sample = Sample(members={\"raw\": test_input_tensor}, stat={}, id=\"sample-from-numpy\")\n",
16741678
"\n",
16751679
"sample"
16761680
]

0 commit comments

Comments
 (0)