def validateEncoder(encoder, subsampling):
 for i in range(encoder.minIndex, (encoder.maxIndex + 1), 1):
  for j in range((i + 1), (encoder.maxIndex + 1), subsampling):
   if (not encoder._overlapOK(i, j)):
    return False
 return True

def validateEncoder ( encoder , subsampling ) : for i in range ( encoder . minIndex , ( encoder . maxIndex + 1 ) , 1 ) : for j in range ( ( i + 1 ) , ( encoder . maxIndex + 1 ) , subsampling ) : if ( not encoder . _overlapOK ( i , j ) ) : return False return True
given an encoder .