              alignment["mask"] = {}
          for mask in alignment["mask"].values():
              mask["stored_centering"] = "face"
  
      def _sort_alignments(self, alignments: dict) -> dict:
          """ Sort the faces into face index order as they appeared in the original alignments file.
  
          If the face index stored in the png header does not match it's position in the alignments
          file (i.e. A face has been removed from a frame) then update the header of the
          corresponding png to the correct index as exists in the newly created alignments file.
 
</s> remove                            alignment: dict,
 </s> add                            alignment: AlignmentFileDict, </s> remove         logger.trace("Updating png header for '%s': (face index from %s to %s, original filename "
                     "from '%s' to '%s'", face_path, source_info["face_index"], new_index,
                     source_info["original_filename"], new_filename)
 </s> add         logger.trace("Updating png header for '%s': (face index from %s to %s, "  # type:ignore
                     "original filename from '%s' to '%s'", face_path, source_info["face_index"],
                     new_index, source_info["original_filename"], new_filename) </s> remove             The alignments file dictionaries sorted into the correct face order, ready for savind
 </s> add             The alignments file dictionaries sorted into the correct face order, ready for saving </s> remove         aln_sorted = {}
 </s> add         aln_sorted: Dict[str, Dict[str, List[AlignmentFileDict]]] = {} </s> remove     def reindex_faces(self) -> None:
 </s> add     def reindex_faces(self) -> int:
    def _sort_alignments(self,
                         alignments: Dict[str, Dict[str, List[Tuple[int,
                                                               AlignmentFileDict,
                                                               str,
                                                               dict]]]]
                         ) -> Dict[str, Dict[str, List[AlignmentFileDict]]] :
              alignment["mask"] = {}
          for mask in alignment["mask"].values():
              mask["stored_centering"] = "face"
  
    def _sort_alignments(self,
                         alignments: Dict[str, Dict[str, List[Tuple[int,
                                                               AlignmentFileDict,
                                                               str,
                                                               dict]]]]
                         ) -> Dict[str, Dict[str, List[AlignmentFileDict]]] :
          """ Sort the faces into face index order as they appeared in the original alignments file.
  
          If the face index stored in the png header does not match it's position in the alignments
          file (i.e. A face has been removed from a frame) then update the header of the
          corresponding png to the correct index as exists in the newly created alignments file.
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Alignments tool - don't error on from-faces job 
tools/alignments/jobs.py