log.setLevel(logging.DEBUG)

# # just test eval function
# genome = ga.getPopulation()[0]
# apply_genome(genome)


#
# Print results
#
best = ga.bestIndividual()
apply_genome(best)
print t
eval_func(best)

t.print_timetable(OUTPUT_FILENAME)

# print info for next steps
print '**********************************************************'
print 'Complete ' + OUTPUT_FILENAME + ' if necessary.'
print 'Print PDF of schedule with:'
if args.test == 1:
   room_nr = re.findall(r'\d+', rooms[0])[0]
elif args.test == 2:
   room_nr = re.findall(r'\d+', rooms[1])[0]
print './test_timetable.sh ' + str(args.test) + ' "' + \
   start.strftime('%H:%M') + '" ' + \
   str(args.groups) + ' ' + \
   room_nr + ' ' + OUTPUT_FILENAME
print '**********************************************************'