  
      def update_legacy(self):
          """ Update legacy alignments """
          if self.has_legacy_landmarksxy():
              logger.info("Updating legacy alignments")
              self.update_legacy_landmarksxy()
  
      # <File Format> #
      # Serializer is now a compressed pickle .fsa format. This used to be any number of serializers
      def test_for_legacy(self, location):
 
</s> remove         self.save()
 </s> add     # Landmarks stored as list instead of numpy array
    def has_legacy_landmarks_list(self):
        """ check for legacy landmarks stored as list """
        logger.debug("checking legacy landmarks as list")
        retval = not all(isinstance(face["landmarks_xy"], np.ndarray)
                         for faces in self.data.values()
                         for face in faces)
        return retval

    def update_legacy_landmarks_list(self):
        """ Update landmarksXY to landmarks_xy and save alignments """
        update_count = 0
        for alignments in self.data.values():
            for alignment in alignments:
                test = alignment["landmarks_xy"]
                if not isinstance(test, np.ndarray):
                    alignment["landmarks_xy"] = np.array(test, dtype="float32")
                    update_count += 1
        logger.debug("Updated landmarks_xy: %s", update_count) </s> remove             self.interface.set_redraw(False)
 </s> add  </s> remove             if key:
 </s> add             if key and key != -1: </s> remove             elif navigation["frame_idx"] in (0, navigation["max_frame"]):
 </s> add             if navigation["frame_idx"] in (0, navigation["max_frame"]):
            logger.info("Updating legacy landmarksXY to landmarks_xy")
  
      def update_legacy(self):
          """ Update legacy alignments """
          if self.has_legacy_landmarksxy():
            logger.info("Updating legacy landmarksXY to landmarks_xy")
              self.update_legacy_landmarksxy()
  
      # <File Format> #
      # Serializer is now a compressed pickle .fsa format. This used to be any number of serializers
      def test_for_legacy(self, location):
keep keep keep keep replace keep keep keep keep keep
 lib.alignments - Auto update legacy list landmarks to numpy array 
lib/alignments.py