From b07e30527fe1eb3e6c23d464e85c93090187b295 Mon Sep 17 00:00:00 2001 From: Jvshen Date: Thu, 23 Jan 2025 11:08:23 -0800 Subject: [PATCH] Add inputs for update_points in upsert_points --- sleap/io/cameras.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sleap/io/cameras.py b/sleap/io/cameras.py index 57efdd741..7bb2969ef 100644 --- a/sleap/io/cameras.py +++ b/sleap/io/cameras.py @@ -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):