code: def progress(params, rep):
      
      name = params['name']
      fullpath = os.path.join(params['path'], params['name'])
      logname = os.path.join(fullpath, '%i.log'%rep)
      if os.path.exists(logname):
          logfile = open(logname, 'r')
          lines = logfile.readlines()
          logfile.close()
          return int(100 * len(lines) / params['iterations'])
      else: 
          return 0
docs: Helper function to calculate the progress made on one experiment.