<jupyter_start><jupyter_text>Merge retrospective entriesFinds and merges the retrospective items for the daily notes in a given week.My weeks start on Sunday.The code takes the first three retro items which are assumed to be 'WW', 'WDNW', 'WDD'.<jupyter_code>from roam_data.dates.dates import  date_from, roam_format, start_of_week_containing, dates_for_wc
day = '20211215'
days = list(roam_format(day) for day in dates_for_wc(start_of_week_containing(date_from(day))))
days
from roam_data.roam.graph import Graph, Page, Block
graph= Graph.from_file('../data/20211215/test01.json')
notes =[graph.page_titles[day] for day in days if day in graph.page_titles]
len(notes)
from roam_data.roam.filter_entries import retro_from

list(retro_from(page) for page in notes)
from roam_data.roam.filter_entries import retros_in

rb = retros_in(notes)
rb
from roam_data.roam.merge import merge_retros

rr = merge_retros(rb)
from roam_data.roam.to_markdown import retro_blocks_to_markdown

retro_blocks_to_markdown(rr)<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup