Skip to content

Commit

Permalink
Replace all Video structuring with Video.cattr()
Browse files Browse the repository at this point in the history
  • Loading branch information
roomrys committed Aug 17, 2024
1 parent 8a8ed57 commit 5bb8d37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sleap/info/feature_suggestions.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ class ParallelFeaturePipeline(object):
def get(self, video_idx):
"""Apply pipeline to single video by idx. Can be called in process."""
video_dict = self.videos_as_dicts[video_idx]
video = cattr.structure(video_dict, Video)
video = Video.cattr().structure(video_dict, Video)
group_offset = video_idx * self.pipeline.n_clusters

# t0 = time()
Expand Down
2 changes: 1 addition & 1 deletion sleap/io/asyncvideo.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def run(self):
break

if "video" in request:
self.video = cattr.structure(request["video"], Video)
self.video = Video.cattr().structure(request["video"], Video)
logger.debug(f"loaded video: {self.video.filename}")

if self.video is not None:
Expand Down

0 comments on commit 5bb8d37

Please sign in to comment.