          self.verbose = arguments.verbose
          self.alignments = alignments
          if self.alignments.src_format == "dfl":
              self.faces = Faces(arguments.faces_dir,
                                 self.verbose)
  
      def process(self):
          """ Run reformat """
          print("\n[REFORMAT ALIGNMENTS]")  # Tidy up cli output
          if self.alignments.src_format == "dfl":
 
</s> remove         return bool(number_alignments == 0
                    or number_alignments == number_faces)
 </s> add         return bool(number_alignments in(0, number_faces)) </s> remove                 else:
                    dfl.seek(chunk_length+12, os.SEEK_CUR)
 </s> add                 dfl.seek(chunk_length+12, os.SEEK_CUR) </s> remove             top_left, top_right  = original_roi[0], original_roi[3]
 </s> add             top_left, top_right = original_roi[0], original_roi[3] </s> remove             index = int(filename[filename.rindex("_") + 1:])
            original_file = "{}".format(filename[:filename.rindex("_")])
 </s> add             index = 0
            original_file = ""
            if not self.dfl:
                index = int(filename[filename.rindex("_") + 1:])
                original_file = "{}".format(filename[:filename.rindex("_")])
                               self.verbose,
                               dfl=True)
          self.verbose = arguments.verbose
          self.alignments = alignments
          if self.alignments.src_format == "dfl":
              self.faces = Faces(arguments.faces_dir,
                               self.verbose,
                               dfl=True)
  
      def process(self):
          """ Run reformat """
          print("\n[REFORMAT ALIGNMENTS]")  # Tidy up cli output
          if self.alignments.src_format == "dfl":
keep keep keep keep replace keep keep keep keep keep
 Alignments Tool - Fix DFL Index bug (#526)

* Alignments tool. Fix DFL Alignments index bug 
tools/lib_alignments/jobs.py