Skip to content

Commit 7d76914

Browse files
authored
Merge branch 'main' into develop_issue91
2 parents 64d8093 + 12ecb3f commit 7d76914

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

Config/configure_PRONTO.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ filter_col_nu = 5
1212
;Specify the number of max rows of the table per slide starting from the 8th slide in report. This is used to split long tables.
1313
table_max_rows_per_slide = 14
1414
;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.
15-
material_file_version = 2025
15+
material_file_version = 2026
1616

1717
[FILTER1]
1818
;Specify the column name need to be filtered:
-668 Bytes
Binary file not shown.

Script/PRONTO.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,10 +579,17 @@ def update_ppt_template_data(inpred_node,ipd_no,ipd_gender,ipd_age,ipd_diagnosis
579579
today_month = time.strftime("%b", time.localtime())
580580
today_year = time.strftime("%Y", time.localtime())
581581
today = today_date + '\n' + today_month.upper() + '\n' + today_year
582+
year_text = "XX\nXXX\n" + today_year
582583
ppt = Presentation(ppt_template)
583584
indexs = [1,3,4,5,6]
584585
for index in indexs:
585586
slide = ppt.slides[index]
587+
textbox0 = slide.shapes.add_textbox(Inches(0.06), Inches(0.06), Inches(0.47), Inches(0.63))
588+
tf0 = textbox0.text_frame
589+
tf0.paragraphs[0].text = year_text
590+
tf0.paragraphs[0].font.size = Pt(11)
591+
tf0.paragraphs[0].font.color.rgb = RGBColor(250,250,250)
592+
tf0.paragraphs[0].alignment = PP_ALIGN.CENTER
586593
textbox1 = slide.shapes.add_textbox(Inches(3.75), Inches(0.11), Inches(1.33), Inches(0.50))
587594
tf1 = textbox1.text_frame
588595
tf1.paragraphs[0].text = ipd_no

0 commit comments

Comments
 (0)