Skip to content

Commit

Permalink
Return video object for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
CBroz1 committed Oct 28, 2024
1 parent 65296cf commit 19ff538
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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 @@ -530,4 +530,4 @@ def concat_partial_videos(self):

def make_video(**kwargs):
"""Passthrough for VideoMaker class for backwards compatibility."""
VideoMaker(**kwargs)
return VideoMaker(**kwargs)
7 changes: 4 additions & 3 deletions src/spyglass/position/v1/position_dlc_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def make(self, key):
video_frame_inds = video_frame_inds[:limit]
pos_info_df = pos_info_df.head(limit)

make_video(
video_maker = make_video(
video_filename=video_filename,
video_frame_inds=video_frame_inds,
position_mean={
Expand All @@ -441,6 +441,7 @@ def make(self, key):
)

if limit: # don't insert if we're just debugging
return
return video_maker

self.insert1(key)
if output_video_filename.exists():
self.insert1(key)

0 comments on commit 19ff538

Please sign in to comment.