From 6aa380695d655b2248fdf0e0052bbd85c761c001 Mon Sep 17 00:00:00 2001 From: CBroz1 Date: Thu, 3 Oct 2024 11:01:18 -0500 Subject: [PATCH 1/2] Pass output file name as str --- CHANGELOG.md | 1 + src/spyglass/position/v1/dlc_utils_makevid.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11ef7e09d..71b31b45a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,7 @@ dj.FreeTable(dj.conn(), "common_session.session_group").drop() - Fix video directory bug in `DLCPoseEstimationSelection` #1103 - Restore #973, allow DLC without position tracking #1100 - Minor fix to `DLCCentroid` make function order #1112, #1148 + - Pass output path as string to `cv2.VideoWriter` #11XX - Spike Sorting diff --git a/src/spyglass/position/v1/dlc_utils_makevid.py b/src/spyglass/position/v1/dlc_utils_makevid.py index 5ee7c096a..994c027f0 100644 --- a/src/spyglass/position/v1/dlc_utils_makevid.py +++ b/src/spyglass/position/v1/dlc_utils_makevid.py @@ -134,7 +134,7 @@ def _init_video(self): def _init_cv_video(self): _ = self._init_video() self.out = cv2.VideoWriter( - filename=self.output_video_filename, + filename=str(self.output_video_filename), fourcc=cv2.VideoWriter_fourcc(*"mp4v"), fps=self.frame_rate, frameSize=self.frame_size, From d9378f2e65db27a231f7b0ca3fcb2fad844f7df1 Mon Sep 17 00:00:00 2001 From: CBroz1 Date: Thu, 3 Oct 2024 12:27:26 -0500 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71b31b45a..a8f150546 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,7 +51,7 @@ dj.FreeTable(dj.conn(), "common_session.session_group").drop() - Fix video directory bug in `DLCPoseEstimationSelection` #1103 - Restore #973, allow DLC without position tracking #1100 - Minor fix to `DLCCentroid` make function order #1112, #1148 - - Pass output path as string to `cv2.VideoWriter` #11XX + - Pass output path as string to `cv2.VideoWriter` #1150 - Spike Sorting