Skip to content

Commit 3f29e7a

Browse files
authored
Merge pull request #6 from OSSFE/assign-rooms-to-sessions
Assign rooms to sessions
2 parents f386cc6 + 8a2694a commit 3f29e7a

File tree

2 files changed

+38
-17
lines changed

2 files changed

+38
-17
lines changed

book/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Here you will find the abstracts for the OSSFE 2025 conference
2424
## Session Opening: 7:00 - 7:10 (EST)
2525
Number of presentations: 1
2626

27-
Room: TBD
27+
Room: MIT
2828

2929
Chair: TBA
3030

@@ -36,7 +36,7 @@ Chair: TBA
3636
## Session P1: 7:10 - 8:10 (EST)
3737
Number of presentations: 2
3838

39-
Room: TBD
39+
Room: MIT
4040

4141
Chair: TBA
4242

@@ -50,7 +50,7 @@ Chair: TBA
5050
## Session A: 8:30 - 9:30 (EST)
5151
Number of presentations: 3
5252

53-
Room: TBD
53+
Room: MIT
5454

5555
Chair: TBA
5656

@@ -64,7 +64,7 @@ Chair: TBA
6464
## Session B: 8:30 - 9:30 (EST)
6565
Number of presentations: 3
6666

67-
Room: TBD
67+
Room: Apache
6868

6969
Chair: TBA
7070

@@ -78,7 +78,7 @@ Chair: TBA
7878
## Session Panel: 10:40 - 11:20 (EST)
7979
Number of presentations: 1
8080

81-
Room: TBD
81+
Room: MIT
8282

8383
Chair: TBA
8484

@@ -90,7 +90,7 @@ Chair: TBA
9090
## Session P2: 11:20 - 11:50 (EST)
9191
Number of presentations: 1
9292

93-
Room: TBD
93+
Room: MIT
9494

9595
Chair: TBA
9696

@@ -102,7 +102,7 @@ Chair: TBA
102102
## Session C: 12:50 - 13:50 (EST)
103103
Number of presentations: 3
104104

105-
Room: TBD
105+
Room: MIT
106106

107107
Chair: TBA
108108

@@ -116,7 +116,7 @@ Chair: TBA
116116
## Session D: 12:50 - 13:50 (EST)
117117
Number of presentations: 3
118118

119-
Room: TBD
119+
Room: Apache
120120

121121
Chair: TBA
122122

@@ -130,7 +130,7 @@ Chair: TBA
130130
## Session E: 14:10 - 15:10 (EST)
131131
Number of presentations: 3
132132

133-
Room: TBD
133+
Room: MIT
134134

135135
Chair: TBA
136136

@@ -144,7 +144,7 @@ Chair: TBA
144144
## Session F: 14:10 - 15:10 (EST)
145145
Number of presentations: 3
146146

147-
Room: TBD
147+
Room: Apache
148148

149149
Chair: TBA
150150

@@ -158,7 +158,7 @@ Chair: TBA
158158
## Session Closing: 15:10 - 15:20 (EST)
159159
Number of presentations: 1
160160

161-
Room: TBD
161+
Room: MIT
162162

163163
Chair: TBA
164164

generate_timetable.py

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"""\
6464
## Session {session_id}: {time_slot}
6565
66-
Room: TBD
66+
Room: {room}
6767
6868
Chair: TBA
6969
@@ -243,7 +243,10 @@ def main():
243243
"session_id": "S_Panel",
244244
}
245245

246-
df = pd.concat([df, pd.DataFrame([opening_talk, closing_talk, panel_session])], ignore_index=True)
246+
df = pd.concat(
247+
[df, pd.DataFrame([opening_talk, closing_talk, panel_session])],
248+
ignore_index=True,
249+
)
247250

248251
# remove all linebreaks that would cause the markdown to break
249252
df = df.replace(r"\n", " ", regex=True)
@@ -276,7 +279,12 @@ def main():
276279
filename = f"{last_name}-{first_word_title}.md".lower()
277280

278281
# remove invalid characters
279-
filename = filename.replace(" ", "").replace("/", "").replace(":", "").replace(",", "")
282+
filename = (
283+
filename.replace(" ", "")
284+
.replace("/", "")
285+
.replace(":", "")
286+
.replace(",", "")
287+
)
280288

281289
title = f'[{item["Title"]}](abstracts/{filename})'
282290
presenter = item["Name"]
@@ -287,7 +295,14 @@ def main():
287295

288296
df_table = pd.DataFrame(data)
289297
table = df_table.to_markdown(index=False)
290-
tables.append(table_template.format(session_id=session.replace("S_", ""), time_slot=time_slot, table=table))
298+
tables.append(
299+
table_template.format(
300+
session_id=session.replace("S_", ""),
301+
time_slot=time_slot,
302+
room=time_slot.room,
303+
table=table,
304+
)
305+
)
291306

292307
data = []
293308
for index, (_, item) in enumerate(df_poster.iterrows(), start=1):
@@ -297,7 +312,9 @@ def main():
297312
filename = f"{last_name}-{first_word_title}.md".lower()
298313

299314
# remove invalid characters
300-
filename = filename.replace(" ", "").replace("/", "").replace(":", "").replace(",", "")
315+
filename = (
316+
filename.replace(" ", "").replace("/", "").replace(":", "").replace(",", "")
317+
)
301318

302319
title = f'[{item["Title"]}](abstracts/{filename})'
303320
presenter = item["Name"]
@@ -307,7 +324,11 @@ def main():
307324
posters_md = df_posters_md.to_markdown(index=False)
308325

309326
(Path("book") / "README.md").write_text(
310-
template.format(tables="\n\n".join(tables), posters=posters_md, poster_time_slot=session_to_time("S_poster"))
327+
template.format(
328+
tables="\n\n".join(tables),
329+
posters=posters_md,
330+
poster_time_slot=session_to_time("S_poster"),
331+
)
311332
)
312333

313334

0 commit comments

Comments
 (0)