Skip to content

Commit afbc233

Browse files
committed
Fix IO tutorial
1 parent 70ca7a4 commit afbc233

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

docs/tutorials/io.ipynb

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,12 +547,16 @@
547547
{
548548
"cell_type": "code",
549549
"execution_count": null,
550-
"metadata": {},
550+
"metadata": {
551+
"tags": [
552+
"skip-execution"
553+
]
554+
},
551555
"outputs": [],
552556
"source": [
553557
"animation = om.show_video_pair(\n",
554-
" video,\n",
555-
" overlay,\n",
558+
" video1=video,\n",
559+
" video2=overlay,\n",
556560
" title1=\"Original Recording\",\n",
557561
" title2=\"Action Potential Wave Front\",\n",
558562
" cmap2=\"Purples\",\n",
@@ -572,6 +576,18 @@
572576
},
573577
"outputs": [],
574578
"source": [
579+
"render(lambda: om.show_video_pair(\n",
580+
" video1=video,\n",
581+
" video2=overlay,\n",
582+
" title1=\"Original Recording\",\n",
583+
" title2=\"Action Potential Wave Front\",\n",
584+
" cmap2=\"Purples\",\n",
585+
" vmin2=0,\n",
586+
" vmax2=1\n",
587+
" ),\n",
588+
" mp4_filename=\"video.mp4\",\n",
589+
" save_args={'fps': 15, 'hide_framecounter': True}\n",
590+
" )\n",
575591
"Video(filename=\"video.mp4\", embed=True, html_attributes=\"controls autoplay loop\", width=640)"
576592
]
577593
},

optimap/video/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Functions for loading, viewing, filtering, saving and exporting videos."""
22

3+
from ..image import normalize
34
from ._edit import (
45
crop,
56
flip_left_right,
@@ -23,7 +24,6 @@
2324
)
2425
from ._filters import (
2526
evolve_jitter_filter,
26-
normalize,
2727
normalize_pixelwise,
2828
normalize_pixelwise_slidingwindow,
2929
smooth_spatiotemporal,

optimap/video/_filters.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from .. import _cpp
77
from ..utils import _print
8-
from ..image import normalize
98

109

1110
def normalize_pixelwise(video: np.ndarray, ymin=0, ymax=1):

0 commit comments

Comments
 (0)