Skip to content
Open
Show file tree
Hide file tree
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
39 changes: 39 additions & 0 deletions nanshe_ipython.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,45 @@
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import dask.array as da\n",
"import holoviews as hv\n",
"import numpy as np\n",
"\n",
"\n",
"hv.extension(\"matplotlib\")\n",
"\n",
"darr = dask_store[subgroup_raw]\n",
"\n",
"# Tuple constructor\n",
"coords = tuple(range(s) for s in darr.shape)\n",
"hd = hv.Dataset(coords[::-1] + (darr,), ['t', 'y', 'x'][::-1], 'z')\n",
"\n",
"image_stack = hd.to(hv.Image, ['x', 'y'], dynamic=True)\n",
"\n",
"display_obj = image_stack.opts(\n",
" plot={\n",
" \"Image\": dict(\n",
" colorbar=True,\n",
" invert_yaxis=True,\n",
" aspect=\"equal\",\n",
" )\n",
" },\n",
" style={\n",
" \"Image\": dict(\n",
" cmap=\"gray\",\n",
" )\n",
" }\n",
")\n",
"\n",
"display_obj"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
1 change: 1 addition & 0 deletions nanshe_workflow.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ requirements:
- psutil
- nanshe >=0.1.0a54
- bokeh >=0.12.4
- holoviews >=1.10.0a1
- future
- webcolors
- nbconvert
Expand Down