          """ Return the correct original index for
              alignment in reverse order """
          for idx, _ in enumerate(reversed(image_alignments)):
              original_idx = number_alignments - 1 - idx
              yield original_idx
  
      # << LEGACY FUNCTIONS >> #
  
 
</s> remove             yield frame_name, alignments, len(alignments), frame_fullname
 </s> add             face_count = len(alignments)
            logger.trace("Yielding: (frame: '%s', faces: %s, frame_fullname: '%s')",
                         frame_name, face_count, frame_fullname)
            yield frame_name, alignments, face_count, frame_fullname </s> remove         return self.count_faces_in_frame(frame) - 1
 </s> add         retval = self.count_faces_in_frame(frame) - 1
        logger.debug("Returning new face index: %s", retval)
        return retval </s> remove         return len(self.data.get(frame, list()))
 </s> add         retval = len(self.data.get(frame, list()))
        logger.trace(retval)
        return retval
            logger.trace("Yielding: face index %s", original_idx)
          """ 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
  
      # << LEGACY FUNCTIONS >> #
  
keep keep 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/alignments.py