  
      def add_face(self, frame, alignment):
          """ Add a new face for a frame and return it's index """
          self.data[frame].append(alignment)
          return self.count_faces_in_frame(frame) - 1
  
      def update_face(self, frame, idx, alignment):
          """ Replace a face for given frame and index """
          self.data[frame][idx] = alignment
  
 
</s>
        retval = self.count_faces_in_frame(frame) - 1
        logger.debug("Returning new face index: %s", retval)
        return retval
  
      def add_face(self, frame, alignment):
          """ Add a new face for a frame and return it's index """
          self.data[frame].append(alignment)
        retval = self.count_faces_in_frame(frame) - 1
        logger.debug("Returning new face index: %s", retval)
        return retval
  
      def update_face(self, frame, idx, alignment):
          """ Replace a face for given frame and index """
          self.data[frame][idx] = alignment
  
keep keep keep keep replace keep 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