          return retval
  
      @property
      def faces_count(self):
          """ Return current faces count """
          retval = sum(len(faces) for faces in self.data.values())
          logger.trace(retval)
          return retval
  
      @property
      def have_alignments_file(self):
 
</s> remove         """ Return current frames count """
        retval = len(self.data)
 </s> add         """ int: The number of frames that appear in the alignments :attr:`data`. """
        retval = len(self._data) </s> remove         """ Return whether an alignments file exists """
        retval = os.path.exists(self.file)
 </s> add         """ bool: ``True`` if an alignments file exists at location :attr:`file` otherwise
        ``False``. """
        retval = os.path.exists(self._file) </s> remove                       for faces in self.data.values()
                      for face in faces])
 </s> add                       for val in self._data.values()
                      for face in val["faces"]]) </s> remove     def get_faces_in_frame(self, frame):
        """ Return the alignments for the selected frame """
        logger.trace("Getting faces for frame: '%s'", frame)
        return self.data.get(frame, list())

    def get_full_frame_name(self, frame):
        """ Return a frame with extension for when the extension is
            not known """
        retval = next(key for key in self.data.keys()
                      if key.startswith(frame))
        logger.trace("Requested: '%s', Returning: '%s'", frame, retval)
        return retval
 </s> add     def get_faces_in_frame(self, frame_name):
        """ Obtain the faces from :attr:`data` associated with a given frame_name.
        """ int: The total number of faces that appear in the alignments :attr:`data`. """
        retval = sum(len(val["faces"]) for val in self._data.values())
          return retval
  
      @property
      def faces_count(self):
        """ int: The total number of faces that appear in the alignments :attr:`data`. """
        retval = sum(len(val["faces"]) for val in self._data.values())
        """ int: The total number of faces that appear in the alignments :attr:`data`. """
        retval = sum(len(val["faces"]) for val in self._data.values())
          logger.trace(retval)
          return retval
  
      @property
      def have_alignments_file(self):
keep keep keep keep replace replace keep keep keep keep keep
 lib.alignments - Slight update (#978)

* lib.alignments update:
  - Minor structure change (faces to nested dictionary)
  - Refactor internal and external methods
  - Documentation 
lib/alignments.py