def marker_weight(matches, marker):
 return len(set((match.name for match in matches.range(predicate=marker_comparator_predicate, *marker.span))))

def marker_weight ( matches , marker ) : return len ( set ( ( match . name for match in matches . range ( predicate = marker_comparator_predicate , * marker . span ) ) ) )
compute the comparator weight of a marker .