              sourcefile = face[2] + frames[face[2]]
              self.convert_dfl_alignment(dfl, sourcefile, alignments)
          return alignments
  
      def validate_dfl(self, face, frames):
          """ Validate that current file is good for dfl extraction """
          if face[1] != ".png":
              if self.verbose:
                  print("{} is not a png. Skipping".format(face[0] + face[1]))
              return False
          if face[2] not in frames.keys():
              if self.verbose:
                  print("{} does not have a matching source frame for {} in "
                        "frames directory. Skipping".format(face[0] + face[1],
                                                            face[2]))
              return False
          return True
  
      @staticmethod
      def get_dfl_alignment(filename):
          """ Process the alignment of one face """
          with open(filename, "rb") as dfl:
              header = dfl.read(8)
 
</s> remove             sourcefile = face[2] + frames[face[2]]
            self.convert_dfl_alignment(dfl, sourcefile, alignments)
 </s> add             self.convert_dfl_alignment(dfl, alignments) </s> remove             if not self.validate_dfl(face, frames):
 </s> add             if face[1] != ".png":
                if self.verbose:
                    print("{} is not a png. "
                          "Skipping".format(face[0] + face[1])) </s> remove                 return
 </s> add                 return None </s> remove         frames = {item[0]: item[1]
                  for item in self.frames.values()}
 </s> add 
              sourcefile = face[2] + frames[face[2]]
              self.convert_dfl_alignment(dfl, sourcefile, alignments)
          return alignments
  














      @staticmethod
      def get_dfl_alignment(filename):
          """ Process the alignment of one face """
          with open(filename, "rb") as dfl:
              header = dfl.read(8)
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Small fix for alignments tool (#489)

* Remove frames requirement for dfl 
tools/alignments.py