ECM15 Schedule


In [1]:
import datetime as dt
import collections

Parameters


In [2]:
# Length of each parameter in minutes
welcome=15
close=15
break_am=30
break_pm=30
lunch=75
plenary=35
post_plenary=10
talk=20
poster=120

#Start time
day1_start=dt.datetime(2018,6,25,8,45)
day2_start=dt.datetime(2018,6,26,9,0)
day3_start=dt.datetime(2018,6,27,9,0)

N_talks_per_session=3
session=N_talks_per_session * talk

Day 1


In [3]:
#Define ordered dictionary of Day 1 events with corresponding length
order = collections.OrderedDict(Welcome=welcome,Plenary_1=plenary,Brief_break=post_plenary,Session_1=session,\
                                Break_am=break_am,Session_2=session,Lunch=lunch,\
                                Session_3=session,Break_pm=break_pm,Session_4=session, \
                                Poster=poster)

#Print timetable
t0=day1_start
for s in order:
    t1=t0+dt.timedelta(minutes=order[s])
    print('%12s %s-%s' %(s,t0.strftime('%H:%M'),t1.strftime('%H:%M')))
    t0=t1


     Welcome 08:45-09:00
   Plenary_1 09:00-09:35
 Brief_break 09:35-09:45
   Session_1 09:45-10:45
    Break_am 10:45-11:15
   Session_2 11:15-12:15
       Lunch 12:15-13:30
   Session_3 13:30-14:30
    Break_pm 14:30-15:00
   Session_4 15:00-16:00
      Poster 16:00-18:00

Day 2


In [4]:
#Define ordered dictionary of Day 2 events with corresponding length
order = collections.OrderedDict(Plenary_2=plenary,Brief_break=post_plenary,Session_5=session,\
                                Break_am=break_am,Session_6=session,Lunch=lunch,\
                                Session_7=session,Break_pm=break_pm,Session_8=session)

#Print timetable
t0=day2_start
for s in order:
    t1=t0+dt.timedelta(minutes=order[s])
    print('%12s %s-%s' %(s,t0.strftime('%H:%M'),t1.strftime('%H:%M')))
    t0=t1


   Plenary_2 09:00-09:35
 Brief_break 09:35-09:45
   Session_5 09:45-10:45
    Break_am 10:45-11:15
   Session_6 11:15-12:15
       Lunch 12:15-13:30
   Session_7 13:30-14:30
    Break_pm 14:30-15:00
   Session_8 15:00-16:00

Day 3


In [5]:
#Define ordered dictionary of Day 3 events with corresponding length
order = collections.OrderedDict(Plenary_3=plenary,Brief_break=post_plenary,Session_9=session,\
                                Break_am=break_am,Session_10=session,Lunch=lunch,\
                                Session_11=session,Break_pm=break_pm,Session_12=session,Close=close)

#Print timetable
t0=day3_start
for s in order:
    t1=t0+dt.timedelta(minutes=order[s])
    print('%12s %s-%s' %(s,t0.strftime('%H:%M'),t1.strftime('%H:%M')))
    t0=t1


   Plenary_3 09:00-09:35
 Brief_break 09:35-09:45
   Session_9 09:45-10:45
    Break_am 10:45-11:15
  Session_10 11:15-12:15
       Lunch 12:15-13:30
  Session_11 13:30-14:30
    Break_pm 14:30-15:00
  Session_12 15:00-16:00
       Close 16:00-16:15

In [6]:
tracks_per_session = 2
sessions = 12
talks = sessions * N_talks_per_session * tracks_per_session
print(talks)


72

In [ ]: