def _other_partitions(verified_partitions, exclude_partitions, course_key):
 results = []
 partition_by_id = {p.id: p for p in verified_partitions}
 other_partition_ids = (set((p.id for p in verified_partitions)) - set((p.id for p in exclude_partitions)))
 for pid in other_partition_ids:
  partition = partition_by_id[pid]
  results.append(UserPartition(id=partition.id, name=partition.name, description=partition.description, scheme=partition.scheme, parameters=partition.parameters, groups=partition.groups, active=False))
  log.info('Disabled partition %s in course %s because the associated in-course-reverification checkpoint does not exist.', partition.id, course_key)
 return results

def _other_partitions ( verified_partitions , exclude_partitions , course_key ) : results = [ ] partition_by_id = { p . id : p for p in verified_partitions } other_partition_ids = ( set ( ( p . id for p in verified_partitions ) ) - set ( ( p . id for p in exclude_partitions ) ) ) for pid in other_partition_ids : partition = partition_by_id [ pid ] results . append ( UserPartition ( id = partition . id , name = partition . name , description = partition . description , scheme = partition . scheme , parameters = partition . parameters , groups = partition . groups , active = False ) ) log . info ( 'Disabled partition %s in course %s because the associated in-course-reverification checkpoint does not exist.' , partition . id , course_key ) return results
retrieve all partitions not associated with the current set of icrv blocks .