                       "w": right - left,
                       "y": top,
                       "h": bottom - top,
                       "landmarksXY": dfl_alignments["source_landmarks"]}
  
          alignments[sourcefile].append(alignment)
  
  
  class RemoveAlignments():
      """ Remove items from alignments file """
      def __init__(self, alignments, arguments):
 
</s> remove         if not alignments.get(sourcefile, None):
            alignments[sourcefile] = list()

 </s> add  </s> remove         and remove the 'r' parameter """
    def __init__(self, alignments, frames):
 </s> add         and remove the 'r' parameter
        - Add face hashes to alignments file
        """
    def __init__(self, alignments, frames, faces_dir): </s> remove         return self.remove_alignment(item)

    def faces_count_matches(self, item):
        """ Check the selected face exits """
        frame_name, number_alignments = item[0], item[2]
        number_faces = len(self.items.items.get(frame_name, list()))
        return bool(number_alignments in(0, number_faces))
 </s> add         pre_face_count = self.alignments.faces_count
        self.alignments.filter_hashes(face_hashes, filter_out=False)
        post_face_count = self.alignments.faces_count
        return pre_face_count - post_face_count
        logger.trace("Adding alignment: (frame: '%s', alignment: %s", sourcefile, alignment)
        alignments.setdefault(sourcefile, list()).append(alignment)
                       "w": right - left,
                       "y": top,
                       "h": bottom - top,
                       "landmarksXY": dfl_alignments["source_landmarks"]}
        logger.trace("Adding alignment: (frame: '%s', alignment: %s", sourcefile, alignment)
        alignments.setdefault(sourcefile, list()).append(alignment)
        logger.trace("Adding alignment: (frame: '%s', alignment: %s", sourcefile, alignment)
        alignments.setdefault(sourcefile, list()).append(alignment)
  
  
  class RemoveAlignments():
      """ Remove items from alignments file """
      def __init__(self, alignments, arguments):
keep keep keep keep replace replace keep keep keep keep keep
 Add Face Hashes to Alignments (#550)

* Convert main scripts to use face hashes

* Alignment tool: Use hashes, add logging, add face rename function

* More logging. Update Manual tool to work with hashing 
tools/lib_alignments/jobs.py