              retval = [AlignmentData(a_file, dest_format) for a_file in self.args.alignments_file]
          logger.debug("Alignments: %s", retval)
          return retval
  
      def get_dest_format(self):
          """ Set the destination format for Alignments """
          dest_format = None
          if hasattr(self.args, 'alignment_format') and self.args.alignment_format:
              dest_format = self.args.alignment_format
          logger.debug(dest_format)
          return dest_format
  
      def process(self):
          """ Main processing function of the Align tool """
          if self.args.job == "update-hashes":
              job = UpdateHashes
          elif self.args.job.startswith("remove-"):
 
</s> remove             retval = [AlignmentData(a_file, dest_format) for a_file in self.args.alignments_file]
 </s> add             retval = [AlignmentData(a_file) for a_file in self.args.alignments_file] </s> remove         dest_format = self.get_dest_format()
 </s> add  </s> remove             retval = AlignmentData(self.args.alignments_file[0], dest_format)
 </s> add             retval = AlignmentData(self.args.alignments_file[0]) </s> remove     def set_dfl(self, destination_format):
        """ Set the alignments for dfl alignments """
        logger.debug("Alignments are DFL format")
        self.file = "dfl"
        self.set_destination_format(destination_format)

    def set_destination_format(self, destination_format):
        """ Standardize the destination format to the correct extension """
        extensions = {".json": "json",
                      ".p": "pickle",
                      ".yml": "yaml",
                      ".yaml": "yaml"}
        dst_fmt = None
        file_ext = os.path.splitext(self.file)[1].lower()
        logger.debug("File extension: '%s'", file_ext)

        if destination_format is not None:
            dst_fmt = destination_format
        elif self.file == "dfl":
            dst_fmt = "json"
        elif file_ext in extensions.keys():
            dst_fmt = extensions[file_ext]
        else:
            logger.error("'%s' is not a supported serializer. Exiting", file_ext)
            exit(0)

        logger.verbose("Destination format set to '%s'", dst_fmt)

        self.serializer = self.get_serializer("", dst_fmt)
        filename = os.path.splitext(self.file)[0]
        self.file = "{}.{}".format(filename, self.serializer.file_extension)
        logger.debug("Destination file: '%s'", self.file)

 </s> add  </s> remove         if self.type == "faces":
            legacy = Legacy(self.alignments, None, faces=self.items, child_process=True)
            legacy.process()

 </s> add 
              retval = [AlignmentData(a_file, dest_format) for a_file in self.args.alignments_file]
          logger.debug("Alignments: %s", retval)
          return retval
  








      def process(self):
          """ Main processing function of the Align tool """
          if self.args.job == "update-hashes":
              job = UpdateHashes
          elif self.args.job.startswith("remove-"):
keep keep keep keep replace replace replace replace replace replace replace replace keep keep keep keep keep
 Legacy alignments update

- Remove legacy update hashes
- Remove legacy job from alignment-tools
- Remove legacy landmark rotation
- Add rotate face method to plugins/extract/detect
- Update travis test for new alignments extension
- Alignments format to .fsa
- Remove serializer option from alignments-tool
- Auto update legacy format alignment files to new format 
tools/alignments.py