              yield original_idx
  
      # << LEGACY FUNCTIONS >> #
  
      def update_legacy(self):
          """ Update legacy alignments """
          updated = False
          if self.has_legacy_landmarksxy():
              logger.info("Updating legacy landmarksXY to landmarks_xy")
              self.update_legacy_landmarksxy()
              updated = True
 
</s> remove         if self.has_legacy_landmarksxy():
 </s> add         if self._has_legacy_structure():
            self._update_legacy_structure()

        if self._has_legacy_landmarksxy(): </s> remove             self.update_legacy_landmarksxy()
 </s> add             self._update_legacy_landmarksxy() </s> remove         if self.has_legacy_landmarks_list():
 </s> add         if self._has_legacy_landmarks_list(): </s> remove             yield frame_name, alignments, face_count, frame_fullname

    @staticmethod
    def yield_original_index_reverse(image_alignments, number_alignments):
        """ Return the correct original index for
            alignment in reverse order """
        for idx, _ in enumerate(reversed(image_alignments)):
            original_idx = number_alignments - 1 - idx
            logger.trace("Yielding: face index %s", original_idx)
            yield original_idx
 </s> add             yield frame_name, val["faces"], face_count, frame_fullname </s> remove             self.update_legacy_landmarks_list()
 </s> add             self._update_legacy_landmarks_list()
    def _update_legacy(self):
        """ Check whether the alignments are legacy, and if so update them to current alignments
        format. """
              yield original_idx
  
      # << LEGACY FUNCTIONS >> #
  
    def _update_legacy(self):
        """ Check whether the alignments are legacy, and if so update them to current alignments
        format. """
    def _update_legacy(self):
        """ Check whether the alignments are legacy, and if so update them to current alignments
        format. """
          updated = False
          if self.has_legacy_landmarksxy():
              logger.info("Updating legacy landmarksXY to landmarks_xy")
              self.update_legacy_landmarksxy()
              updated = True
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