Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions docs/source/basic/write_image.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@
"cell_type": "code",
"execution_count": 1,
"id": "f87d36fa",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-04-21T14:22:46.982748Z",
"iopub.status.busy": "2026-04-21T14:22:46.982456Z",
"iopub.status.idle": "2026-04-21T14:22:47.853028Z",
"shell.execute_reply": "2026-04-21T14:22:47.852515Z"
}
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -58,29 +65,38 @@
"\n",
"The default version of OME-NGFF is v0.5, which is based on Zarr v3.\n",
"A zarr v3 group and store is created by `zarr.open_group()` below.\n",
"To write OME-NGFF v0.4 (Zarr v2), add the `zarr_format=2` argument."
"To write OME-NGFF v0.4 (Zarr v2), add the `fmt=FormatV04()` argument."
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"id": "cfb1d49f",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-04-21T14:22:47.854602Z",
"iopub.status.busy": "2026-04-21T14:22:47.854423Z",
"iopub.status.idle": "2026-04-21T14:22:47.887527Z",
"shell.execute_reply": "2026-04-21T14:22:47.886995Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"[]"
]
},
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from ome_zarr.format import FormatV04\n",
"\n",
"path = \"test_ngff_image_v2.ome.zarr\"\n",
"write_image(data, path, axes=\"zyx\", zarr_format=2)"
"write_image(data, path, axes=\"zyx\", fmt=FormatV04())"
]
},
{
Expand Down Expand Up @@ -114,7 +130,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.12"
"version": "3.13.13"
}
},
"nbformat": 4,
Expand Down
Loading