Skip to content

Commit

Permalink
DLC make_video minor fixes (#1150)
Browse files Browse the repository at this point in the history
* Pass output file name as str

* Update changelog
  • Loading branch information
CBroz1 authored Oct 7, 2024
1 parent 448fffd commit 03e3996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,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` #1150

- Spike Sorting

Expand Down
2 changes: 1 addition & 1 deletion src/spyglass/position/v1/dlc_utils_makevid.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 03e3996

Please sign in to comment.