def _drop_log_stats(drop_log, ignore=('IGNORED',)):
 if ((not isinstance(drop_log, list)) or (not isinstance(drop_log[0], list))):
  raise ValueError('drop_log must be a list of lists')
 perc = (100 * np.mean([(len(d) > 0) for d in drop_log if (not any(((r in ignore) for r in d)))]))
 return perc

def _drop_log_stats ( drop_log , ignore = ( 'IGNORED' , ) ) : if ( ( not isinstance ( drop_log , list ) ) or ( not isinstance ( drop_log [ 0 ] , list ) ) ) : raise ValueError ( 'drop_log must be a list of lists' ) perc = ( 100 * np . mean ( [ ( len ( d ) > 0 ) for d in drop_log if ( not any ( ( ( r in ignore ) for r in d ) ) ) ] ) ) return perc
compute drop log stats .