      def transform_matrix(mat, size, padding):
          """ Transform the matrix for current size and padding """
          matrix = mat * (size - 2 * padding)
          matrix[:, 2] += padding
          logger.trace("Returning: %s", matrix)
          return matrix
 
</s> remove             mat[:,2] += padding
 </s> add             mat[:, 2] += padding
 </s> remove         new_face = self.get_new_face(image,mat,size)
 </s> add         new_face = self.get_new_face(image, mat, size)

        logger.trace("size: %s. padding: %s", size, padding)

      def transform_matrix(mat, size, padding):
          """ Transform the matrix for current size and padding """
        logger.trace("size: %s. padding: %s", size, padding)
          matrix = mat * (size - 2 * padding)
          matrix[:, 2] += padding
          logger.trace("Returning: %s", matrix)
          return matrix
keep add keep keep keep keep
 Logging (#541)

* Convert prints to logger. Further logging improvements. Tidy  up

* Fix system verbosity. Allow SystemExit

* Fix reload extract bug

* Child Traceback handling

* Safer shutdown procedure

* Add shutdown event to queue manager

* landmarks_as_xy > property. GUI notes + linting. Aligner bugfix

* fix FaceFilter. Enable nFilter when no Filter is supplied

* Fix blurry face filter

* Continue on IO error. Better error handling

* Explicitly print stack trace tocrash log

* Windows Multiprocessing bugfix

* Add git info and conda version to crash log

* Windows/Anaconda mp bugfix

* Logging fixes for training 
lib/aligner.py