Skip to content

Commit 03e3996

Browse files
authored
DLC make_video minor fixes (#1150)
* Pass output file name as str * Update changelog
1 parent 448fffd commit 03e3996

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ dj.FreeTable(dj.conn(), "common_session.session_group").drop()
5353
- Fix video directory bug in `DLCPoseEstimationSelection` #1103
5454
- Restore #973, allow DLC without position tracking #1100
5555
- Minor fix to `DLCCentroid` make function order #1112, #1148
56+
- Pass output path as string to `cv2.VideoWriter` #1150
5657

5758
- Spike Sorting
5859

src/spyglass/position/v1/dlc_utils_makevid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def _init_video(self):
134134
def _init_cv_video(self):
135135
_ = self._init_video()
136136
self.out = cv2.VideoWriter(
137-
filename=self.output_video_filename,
137+
filename=str(self.output_video_filename),
138138
fourcc=cv2.VideoWriter_fourcc(*"mp4v"),
139139
fps=self.frame_rate,
140140
frameSize=self.frame_size,

0 commit comments

Comments
 (0)