In [1]:
import datetime as dt
import collections
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
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
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
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
In [6]:
tracks_per_session = 2
sessions = 12
talks = sessions * N_talks_per_session * tracks_per_session
print(talks)
In [ ]: