Skip to content

Commit

Permalink
updated video handling
Browse files Browse the repository at this point in the history
  • Loading branch information
keyaloding committed Jul 29, 2024
1 parent f510765 commit 183cf55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sleap_io/io/nwb.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def pose_training_to_labels(pose_training: PoseTraining) -> Labels: # type: ign
if source_video.format == "external" and len(source_video.external_file) == 1:
video = Video(source_video.external_file[0])
else:
raise NotImplementedError("Only single-file external videos are supported.")
video = Video.from_filename(source_video.external_file)

frame_idx = training_frame.source_video_frame_index
instances = []
Expand Down

0 comments on commit 183cf55

Please sign in to comment.