Exemplo n.º 1
0
def given_a_run(context):
    p = Document().add_paragraph()
    context.run = p.add_run()
Exemplo n.º 2
0
     failedArticles = []
     
     if month in monthsOf31:
         daysInMonth = 31
     elif month in monthsOf30:
         daysInMonth = 30
     elif month == 2:
         if month % 4 == 0:
             daysInMonth = 29
         else:
             daysInMonth = 28
     
     #Looping for the number of days within the month
     while day <= daysInMonth:
         print(str(day) + '/' + str(month) + '/' + str(year))
         mainParser()
         day += 1
     
     #Adding failed articles and saving the document
     failedArticlesParagraph = document.add_paragraph()
     for failedArticle in failedArticles:
         newLine = document.add_run(failedArticle)
         newLine.add_break()
     
     document.save('{0}/{1} results.docx'.format(month, year))
     
     month += 1
     day = 1
     
 year += 1
 month = 1    
Exemplo n.º 3
0
def given_a_run(context):
    p = Document().add_paragraph()
    context.run = p.add_run()
Exemplo n.º 4
0
    name_final = name_extension_cgm.replace('_', '.')
    p.add_run(unicode(name_final[4:], 'utf-8'))
    p.add_run(unicode(' a été utilisé (', 'utf-8'))
    paragraph_format = p.paragraph_format
    p.add_run('https://pycgm2.github.io/').italic = True
    p.add_run(').')

    if there_is_knee_optim:
        p2 = document.add_paragraph(
            unicode('La méthode de réorientation du genou DynaKad a été appliquée (', 'utf-8'))
        paragraph_format = p2.paragraph_format
        paragraph_format.space_before = Pt(10)
        document.add_paragraph('\n')
        p2.add_run(unicode(
            'Baker, R., 1999. A new approach to determine the hip rotation from clinical gait analysis data 18, 655–667', 'utf-8')).italic = True
        document.add_run(unicode(').', 'utf-8'))

    p3 = document.add_paragraph()
    p3.add_run('Objectifs de la demande :').bold = True

    newpage_report_comp_4images(unicode('Paramètres Spatio-temporels', 'utf-8'),
                                SPT_pic_S1_LR_chiffre, SPT_pic_S2_LR_chiffre, SPT_pic_S1_LR, SPT_pic_S2_LR)
    newpage_report_comp_4images(unicode('Paramètres Spatio-temporels',
                                        'utf-8'), SPT_pic_Left_chiffre, SPT_pic_Right_chiffre, SPT_pic_Left, SPT_pic_Right)

    newpage_report_comp(unicode('Cinématique', 'utf-8'), kinematic_pic_S1_LR, kinematic_pic_S2_LR)
    if kinetic_bool:
        #newpage_report_comp(unicode('Cinétique :', 'utf-8'), kinetic_pic_S1_LR, kinetic_pic_S2_LR)
        newpage_report_comp_4images(unicode('Cinétique :', 'utf-8'), kinetic_pic_S1_LR,
                                    kinetic_pic_S2_LR, kinetic_pic_S1_LR_frontal, kinetic_pic_S2_LR_frontal)
    newpage_report_comp(unicode('Cinématique coté par coté : ', 'utf-8'),