Skip to content

Commit

Permalink
Add inputs for update_points in upsert_points
Browse files Browse the repository at this point in the history
  • Loading branch information
Jvshen committed Jan 23, 2025
1 parent 9ed8417 commit b07e305
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sleap/io/cameras.py
Original file line number Diff line number Diff line change
Expand Up @@ -2373,12 +2373,13 @@ def upsert_points(
self.create_and_add_missing_instances(instance_group=instance_group)

# Update points for each `Instance` in `InstanceGroup`
instance_points = points[:, ig_idx, :, :] # M x N x 2
instance_points = points[ig_idx, :, :] # N x 3
instance_group.update_points(
points=instance_points,
cams_to_include=self.cams_to_include,
excluded_views=self.excluded_views,
exclude_complete=exclude_complete,
bounds=bounds,
projection_bounds=bounds,
)

def _raise_if_instance_not_in_instance_group(self, instance: Instance):
Expand Down

0 comments on commit b07e305

Please sign in to comment.