  
      def spatially_filter(self):
          """ interpret the shapes using our shape model
              (project and reconstruct) """
          landmarks_norm = self.normalized["landmarks"]
          # convert to matrix form
          landmarks_norm_table = np.reshape(landmarks_norm, [68 * 2, landmarks_norm.shape[2]]).T
          # project onto shapes model and reconstruct
          landmarks_norm_table_rec = self.shapes_model.inverse_transform(
 
</s> remove         landmarks_norm_table = np.reshape(landmarks_norm,
                                          [68 * 2, landmarks_norm.shape[2]]).T
 </s> add         landmarks_norm_table = np.reshape(landmarks_norm, [68 * 2, landmarks_norm.shape[2]]).T </s> remove         normalized_shapes_tbl = np.reshape(landmarks_norm,
                                           [68*2, landmarks_norm.shape[2]]).T
        self.shapes_model = decomposition.PCA(
            n_components=num_components,
            whiten=True,
            random_state=1).fit(normalized_shapes_tbl)
 </s> add         normalized_shapes_tbl = np.reshape(landmarks_norm, [68*2, landmarks_norm.shape[2]]).T
        self.shapes_model = decomposition.PCA(n_components=num_components,
                                              whiten=True,
                                              random_state=1).fit(normalized_shapes_tbl)
        logger.debug("Spatially Filter")
  
      def spatially_filter(self):
          """ interpret the shapes using our shape model
              (project and reconstruct) """
        logger.debug("Spatially Filter")
          landmarks_norm = self.normalized["landmarks"]
          # convert to matrix form
          landmarks_norm_table = np.reshape(landmarks_norm, [68 * 2, landmarks_norm.shape[2]]).T
          # project onto shapes model and reconstruct
          landmarks_norm_table_rec = self.shapes_model.inverse_transform(
keep keep keep add keep keep keep keep keep
 Add Face Hashes to Alignments (#550)

* Convert main scripts to use face hashes

* Alignment tool: Use hashes, add logging, add face rename function

* More logging. Update Manual tool to work with hashing 
tools/lib_alignments/jobs.py