Skip to content

Commit

Permalink
Only check if specified camera is in camera_cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
roomrys committed Mar 15, 2024
1 parent 9e3b977 commit c9b5780
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sleap/io/cameras.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,7 @@ def add_video(self, video: Video, camcorder: Camcorder):

# Ensure the `Camcorder` is in this `RecordingSession`'s `CameraCluster`
try:
for camera in self.camera_cluster.cameras:
assert camcorder in self.camera_cluster
assert camcorder in self.camera_cluster
except AssertionError:
raise ValueError(
f"Camcorder {camcorder.name} is not in this RecordingSession's "
Expand Down

0 comments on commit c9b5780

Please sign in to comment.