-
Notifications
You must be signed in to change notification settings - Fork 0
/
thanksgiving.py
66 lines (62 loc) · 1.72 KB
/
thanksgiving.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
from datetime import datetime, timedelta
from timeline import Event, graph_timeline, timeline
events = [
Event(
name="Prep Turkey",
duration=timedelta(minutes=35),
notes="oven at 400",
event_type="prep",
),
Event(
name="Turkey in",
duration=timedelta(minutes=45),
notes="breast down",
event_type="cooking",
),
Event(
name="Flip Turkey",
duration=timedelta(minutes=5),
notes="breast up",
event_type="cooking",
),
Event(
name="Turkey Back in",
duration=timedelta(hours=1, minutes=20),
event_type="cooking",
),
Event(
name="Prep Stuffing",
duration=timedelta(minutes=15),
notes="AL foil on",
event_type="prep",
),
Event(
name="Turkey out",
duration=timedelta(minutes=5),
notes="adjust racks, cover turkey",
event_type="cooking",
),
Event(
name="Stuffing in", duration=timedelta(minutes=10), event_type="cooking"
),
Event(
name="GB casserole in",
duration=timedelta(minutes=10),
event_type="cooking",
),
Event(
name="Uncover stuffing",
duration=timedelta(minutes=5),
notes="add topping to GB casserole",
event_type="cooking",
),
Event(
name="Carve Turkey", duration=timedelta(minutes=15), event_type="prep"
),
Event(name="Dinner time", duration=timedelta(minutes=0), event_type="fun"),
]
dinner_time = datetime(2021, 11, 25, hour=17, minute=30)
events = timeline(events=events, event_time=dinner_time, event_time_type="end")
g = graph_timeline(events)
g.format = "png"
g.render("outputs/timeline-graph.gv", view=False)