          landmarks_all = np.zeros((68, 2, int(count)))
  
          end = 0
          for key in tqdm(sorted(self.alignments.data.keys()), desc="Compiling"):
              val = self.alignments.data[key]
              if not val:
                  continue
              # We should only be normalizing a single face, so just take
              # the first landmarks found
              landmarks = np.array(val[0]["landmarks_xy"]).reshape(68, 2, 1)
 
</s> remove         count = sum(1 for val in self.alignments.data.values() if val)
 </s> add         count = sum(1 for val in self.alignments.data.values() if val["faces"]) </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         data = self.serializer.load(self.file)
 </s> add         data = self._serializer.load(self.file) </s> remove     def update_legacy_landmarks_list(self):
        """ Update landmarksXY to landmarks_xy and save alignments """
 </s> add     def _update_legacy_landmarks_list(self):
        """ Update landmarks stored as `list` to :class:`numpy.ndarray`. """ </s> remove             self.alignments.data[key] = sorted_alignments
 </s> add             self.alignments.data[key]["faces"] = sorted_alignments
            val = self.alignments.data[key]["faces"]
          landmarks_all = np.zeros((68, 2, int(count)))
  
          end = 0
          for key in tqdm(sorted(self.alignments.data.keys()), desc="Compiling"):
            val = self.alignments.data[key]["faces"]
              if not val:
                  continue
              # We should only be normalizing a single face, so just take
              # the first landmarks found
              landmarks = np.array(val[0]["landmarks_xy"]).reshape(68, 2, 1)
keep keep keep keep 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 
tools/lib_alignments/jobs.py