              self._canvas.dtag(tag)
  
          if self._viewport.selected_editor == "mask" and not self._optional_annotations["mask"]:
              for key, tk_face in self._tk_faces.items():
                  if key.startswith("{}_".format(self._last_execution["frame_index"])):
                      tk_face.update_mask(None)
  
      def _set_active_objects(self):
          """ Collect the objects that exist in the currently active frame from the main grid. """
          if self._grid.is_valid:
 
</s> remove             tag = "active_mesh_{}".format(key)
 </s> add             tag = f"active_mesh_{key}" </s> remove         keys = ["{}_{}".format(pnt_x, pnt_y)
 </s> add         keys = [f"{pnt_x}_{pnt_y}" </s> remove         for key in ("mask", "affine_matrix", "interpolator", "stored_size", "stored_centering"):
            val = mask_dict.get(key)
            val = "face" if key == "stored_centering" and val is None else val
            if key == "affine_matrix" and not isinstance(val, np.ndarray):
                val = np.array(val, dtype="float64")
            setattr(self, self._attr_name(key), val)
            logger.trace("%s - %s", key, val if key != "mask" else type(val))

    @staticmethod
    def _attr_name(dict_key):
        """ The :class:`Mask` attribute name for the given dictionary key

        Parameters
        ----------
        dict_key: str
            The key name from an alignments dictionary

        Returns
        -------
        attribute_name: str
            The attribute name for the given key for :class:`Mask`
        """
        retval = "_{}".format(dict_key) if not dict_key.startswith("stored") else dict_key
        logger.trace("dict_key: %s, attribute_name: %s", dict_key, retval)
        return retval
 </s> add         self._mask = mask_dict["mask"]
        affine_matrix = mask_dict["affine_matrix"]
        self._affine_matrix = (affine_matrix if isinstance(affine_matrix, np.ndarray)
                               else np.array(affine_matrix, dtype="float64"))
        self._interpolator = mask_dict["interpolator"]
        self.stored_size = mask_dict["stored_size"]
        centering = mask_dict.get("stored_centering")
        self.stored_centering = "face" if centering is None else centering
        logger.trace({k: v if k != "mask" else type(v)  # type: ignore
                      for k, v in mask_dict.items()}) </s> remove         numpy.ndarray: The mask affined to the original full frame of the given dimensions
 </s> add         :class:`numpy.ndarray`: The mask affined to the original full frame of the given dimensions </s> remove                 self._canvas.addtag_withtag("active_mesh_{}".format(key), mesh_id)
 </s> add                 self._canvas.addtag_withtag(f"active_mesh_{key}", mesh_id)
                if key.startswith(f"{self._last_execution['frame_index']}_"):
              self._canvas.dtag(tag)
  
          if self._viewport.selected_editor == "mask" and not self._optional_annotations["mask"]:
              for key, tk_face in self._tk_faces.items():
                if key.startswith(f"{self._last_execution['frame_index']}_"):
                      tk_face.update_mask(None)
  
      def _set_active_objects(self):
          """ Collect the objects that exist in the currently active frame from the main grid. """
          if self._grid.is_valid:
keep keep keep keep replace keep keep keep keep keep
 lib.align updates:
  - alignments.py
    - Add typed dicts for imported alignments
    - Explicitly check for presence of thumb value in alignments dict
    - linting
  - detected_face.py
    - Typing
    - Linting
    - Legacy support for pre-aligned face
    - Update dependencies to new property names 
tools/manual/faceviewer/viewport.py