ui/ImageView.py
def delete_box(self, box: SourceBoundingBox):
        """
        Delete a box from the source, save
        :param box: Source bounding box to delete
        :return: None
        """
        source_boxes = self.observation_map[box.observation_uuid].metadata['boxes']
        if box in self.observation_map[box.observation_uuid].metadata['boxes']:  # Protect
            source_boxes.remove(box)
            delete_box(box.association_uuid)  # Call deletion request
            update_imaged_moment_entry(self.moment)

        Delete a box from the source, save
        :param box: Source bounding box to delete
        :return: None
        
Delete a box from the source, save
Delete a box from the source save
def delete_box(self, box: SourceBoundingBox):
        source_boxes = self.observation_map[box.observation_uuid].metadata['boxes']
        if box in self.observation_map[box.observation_uuid].metadata['boxes']:  
            source_boxes.remove(box)
            delete_box(box.association_uuid)  
            update_imaged_moment_entry(self.moment)
def delete_box ( self , box : SourceBoundingBox ) : source_boxes = self . observation_map [ box . observation_uuid ] . metadata [ 'boxes' ] if box in self . observation_map [ box . observation_uuid ] . metadata [ 'boxes' ] : source_boxes . remove ( box ) delete_box ( box . association_uuid ) update_imaged_moment_entry ( self . moment )
Delete a box from the source, save
Delete a box from the source save
"""
        Delete a box from the source, save
        :param box: Source bounding box to delete
        :return: None
        """ # Protect # Call deletion request
None
self
box
SourceBoundingBox
Source bounding box to delete
Source bounding box to delete