MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / test_writer_split

Function test_writer_split

tests/test_video.py:107–114  ·  view source on GitHub ↗
(tmp_path, video_clip)

Source from the content-addressed store, hash-verified

105
106
107def test_writer_split(tmp_path, video_clip):
108 with pytest.raises(ValueError):
109 video_clip.split(1)
110 n_splits = 3
111 clips = video_clip.split(n_splits, dest_folder=str(tmp_path))
112 assert len(clips) == n_splits
113 vid = VideoWriter(clips[0])
114 assert pytest.approx(len(vid), abs=1) == len(video_clip) // n_splits
115
116
117def test_writer_crop(tmp_path, video_clip):

Callers

nothing calls this directly

Calls 2

VideoWriterClass · 0.90
splitMethod · 0.45

Tested by

no test coverage detected