old_contents: # --------------------------------------------------------------------------------------
  # Copyright 2016, Benedikt J. Daurer, Filipe R.N.C. Maia, Max F. Hantke, Carl Nettelblad
  # Hummingbird is distributed under the terms of the Simplified BSD License.
  # -------------------------------------------------------------------------
  from __future__ import print_function, absolute_import # Compatibility with python 2 and 3
  import collections
  import datetime
  import ipc
  import numpy as np
  from backend import EventTranslator
  
  processingTimes = collections.deque([], 200)
  def printProcessingRate(pulses_per_event=1):
      """Prints processing rate to screen"""
      for i in range(pulses_per_event):
          processingTimes.appendleft(datetime.datetime.now())
      if(len(processingTimes) < 2):
          return
      dt = processingTimes[0] - processingTimes[-1]
      proc_rate = np.array((len(processingTimes)-1)/dt.total_seconds())
      ipc.mpi.sum("processingRate", proc_rate)
      proc_rate = proc_rate[()]
      if(ipc.mpi.is_main_event_reader()):
          print('Processing Rate %.2f Hz' % proc_rate)
  
  def printKeys(evt, group=None):
      """prints available keys of Hummingbird events"""
      if isinstance(evt, EventTranslator) and group is None:
          print("The event has the following keys: ", evt.keys())
      elif isinstance(evt, EventTranslator) and group:
          print("The dict of %s records has the following keys: " %(group), evt[group].keys())
      else:
          print(evt.keys())
  
  def printNativeKeys(evt):
      """prints available keys of Native event"""
      print(evt.native_keys())
  
new_contents: # --------------------------------------------------------------------------------------
  # Copyright 2016, Benedikt J. Daurer, Filipe R.N.C. Maia, Max F. Hantke, Carl Nettelblad
  # Hummingbird is distributed under the terms of the Simplified BSD License.
  # -------------------------------------------------------------------------
  from __future__ import print_function, absolute_import # Compatibility with python 2 and 3
  import collections
  import datetime
  import ipc
  import numpy as np
  from backend import EventTranslator
  
  processingTimes = collections.deque([], 1000)
  def printProcessingRate(pulses_per_event=1):
      """Prints processing rate to screen"""
      for i in range(pulses_per_event):
          processingTimes.appendleft(datetime.datetime.now())
      if(len(processingTimes) < 2):
          return
      dt = processingTimes[0] - processingTimes[-1]
      proc_rate = np.array((len(processingTimes)-1)/dt.total_seconds())
      ipc.mpi.sum("processingRate", proc_rate)
      proc_rate = proc_rate[()]
      if(ipc.mpi.is_main_event_reader()):
          print('Processing Rate %.2f Hz' % proc_rate)
  
  def printKeys(evt, group=None):
      """prints available keys of Hummingbird events"""
      if isinstance(evt, EventTranslator) and group is None:
          print("The event has the following keys: ", evt.keys())
      elif isinstance(evt, EventTranslator) and group:
          print("The dict of %s records has the following keys: " %(group), evt[group].keys())
      else:
          print(evt.keys())
  
  def printNativeKeys(evt):
      """prints available keys of Native event"""
      print(evt.native_keys())
  
subject: Make the processing rate buffer larger