diff --git a/Config/configure_PRONTO.ini b/Config/configure_PRONTO.ini index 0540539..d9a91ce 100644 --- a/Config/configure_PRONTO.ini +++ b/Config/configure_PRONTO.ini @@ -10,7 +10,7 @@ encoding_sys = utf-8 ;Specify the number of columns you want to do the filtering (NB: this will also make the script to generate the number of output tables): filter_col_nu = 5 ;Please modify this for local env if you use MTF files to import the clinical data into meta file. Specify the version of year of the MTF files. -material_file_version = 2025 +material_file_version = 2026 [FILTER1] ;Specify the column name need to be filtered: diff --git a/In/Template/InPreD_MTB_template.pptx b/In/Template/InPreD_MTB_template.pptx index 04262e2..6410942 100644 Binary files a/In/Template/InPreD_MTB_template.pptx and b/In/Template/InPreD_MTB_template.pptx differ diff --git a/Script/PRONTO.py b/Script/PRONTO.py index 4f6d128..f080e45 100755 --- a/Script/PRONTO.py +++ b/Script/PRONTO.py @@ -579,10 +579,17 @@ def update_ppt_template_data(inpred_node,ipd_no,ipd_gender,ipd_age,ipd_diagnosis today_month = time.strftime("%b", time.localtime()) today_year = time.strftime("%Y", time.localtime()) today = today_date + '\n' + today_month.upper() + '\n' + today_year + year_text = "XX\nXXX\n" + today_year ppt = Presentation(ppt_template) indexs = [1,3,4,5,6] for index in indexs: slide = ppt.slides[index] + textbox0 = slide.shapes.add_textbox(Inches(0.06), Inches(0.06), Inches(0.47), Inches(0.63)) + tf0 = textbox0.text_frame + tf0.paragraphs[0].text = year_text + tf0.paragraphs[0].font.size = Pt(11) + tf0.paragraphs[0].font.color.rgb = RGBColor(250,250,250) + tf0.paragraphs[0].alignment = PP_ALIGN.CENTER textbox1 = slide.shapes.add_textbox(Inches(3.75), Inches(0.11), Inches(1.33), Inches(0.50)) tf1 = textbox1.text_frame tf1.paragraphs[0].text = ipd_no