Esempio n. 1
0
    ban = lat.bannerize('Top level: make output directory structure')
    cmd = lat.make_apqc_dirs()

    str_FULL += ban
    str_FULL += cmd

    # --------------------------------------------------------------------

    # Top level: see if template can be found, *if* a template was used.
    # We always have to look, because even the EPI-anat alignment check
    # will be influenced by this-- if there *is* a template, then use its
    # box to define view slices; else, just try to "box in" the final anat.

    ldep = ['template']
    if lat.check_dep(ap_ssdict, ldep):
        ban = lat.bannerize('Top level: find a template')
        cmd = lat.apqc_find_template()

        str_FULL += ban
        str_FULL += cmd

    # --------------------------------------------------------------------

    ldep = ['subj']
    if lat.check_dep(ap_ssdict, ldep):
        ban = lat.bannerize('title of html page: subj')
        opref = lat.page_title_json  # here, just the title page name
        cmd = lat.apqc_Top_pagetop(opref, "Top", "pagetop")

        str_FULL += ban
Esempio n. 2
0
    # --------------------------------------------------------------------

    # Top level: commands to make dirs for output

    ban = lat.bannerize('Top level: make output directory structure')
    cmd = lat.make_apqc_dirs()

    str_FULL += ban
    str_FULL += cmd

    # Top level: see if template can be found, *if* a template was used.
    # We always have to look, because even the EPI-anat alignment check
    # will be influenced by this-- if there *is* a template, then use its
    # box to define view slices; else, just try to "box in" the final anat.
    ldep = ['template']
    if lat.check_dep(ap_ssdict, ldep):
        ban = lat.bannerize('Top level: find a template')
        cmd = lat.apqc_find_template()

        str_FULL += ban
        str_FULL += cmd

    # --------------------------------------------------------------------

    ldep = ['subj']
    if lat.check_dep(ap_ssdict, ldep):
        ban = lat.bannerize('title of html page: subj')
        opref = lat.page_title_json
        cmd = lat.apqc_dat_html_title(opref)

        str_FULL += ban