Exemplo n.º 1
0
def test_Overlay_outputs():
    output_map = dict(out_file=dict(), )
    outputs = Overlay.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Exemplo n.º 2
0
def test_Overlay_outputs():
    output_map = dict(out_file=dict(),
    )
    outputs = Overlay.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Exemplo n.º 3
0
def test_Overlay_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    stat_thresh=dict(position=7,
    mandatory=True,
    argstr='%.2f %.2f',
    ),
    background_image=dict(position=4,
    mandatory=True,
    argstr='%s',
    ),
    args=dict(argstr='%s',
    ),
    show_negative_stats=dict(position=8,
    xor=['stat_image2'],
    argstr='%s',
    ),
    stat_image2=dict(position=9,
    xor=['show_negative_stats'],
    argstr='%s',
    ),
    bg_thresh=dict(mandatory=True,
    position=5,
    xor=('auto_thresh_bg', 'full_bg_range', 'bg_thresh'),
    argstr='%.3f %.3f',
    ),
    full_bg_range=dict(xor=('auto_thresh_bg', 'full_bg_range', 'bg_thresh'),
    position=5,
    mandatory=True,
    argstr='-A',
    ),
    auto_thresh_bg=dict(xor=('auto_thresh_bg', 'full_bg_range', 'bg_thresh'),
    position=5,
    mandatory=True,
    argstr='-a',
    ),
    use_checkerboard=dict(position=3,
    argstr='-c',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    transparency=dict(position=1,
    usedefault=True,
    argstr='%s',
    ),
    output_type=dict(),
    out_type=dict(position=2,
    usedefault=True,
    argstr='%s',
    ),
    stat_thresh2=dict(position=10,
    argstr='%.2f %.2f',
    ),
    stat_image=dict(position=6,
    mandatory=True,
    argstr='%s',
    ),
    out_file=dict(hash_files=False,
    genfile=True,
    position=-1,
    argstr='%s',
    ),
    )
    inputs = Overlay.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
Exemplo n.º 4
0
def test_Overlay_inputs():
    input_map = dict(
        args=dict(argstr='%s', ),
        auto_thresh_bg=dict(
            argstr='-a',
            mandatory=True,
            position=5,
            xor=('auto_thresh_bg', 'full_bg_range', 'bg_thresh'),
        ),
        background_image=dict(
            argstr='%s',
            mandatory=True,
            position=4,
        ),
        bg_thresh=dict(
            argstr='%.3f %.3f',
            mandatory=True,
            position=5,
            xor=('auto_thresh_bg', 'full_bg_range', 'bg_thresh'),
        ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        full_bg_range=dict(
            argstr='-A',
            mandatory=True,
            position=5,
            xor=('auto_thresh_bg', 'full_bg_range', 'bg_thresh'),
        ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        out_file=dict(
            argstr='%s',
            genfile=True,
            hash_files=False,
            position=-1,
        ),
        out_type=dict(
            argstr='%s',
            position=2,
            usedefault=True,
        ),
        output_type=dict(),
        show_negative_stats=dict(
            argstr='%s',
            position=8,
            xor=['stat_image2'],
        ),
        stat_image=dict(
            argstr='%s',
            mandatory=True,
            position=6,
        ),
        stat_image2=dict(
            argstr='%s',
            position=9,
            xor=['show_negative_stats'],
        ),
        stat_thresh=dict(
            argstr='%.2f %.2f',
            mandatory=True,
            position=7,
        ),
        stat_thresh2=dict(
            argstr='%.2f %.2f',
            position=10,
        ),
        terminal_output=dict(
            mandatory=True,
            nohash=True,
        ),
        transparency=dict(
            argstr='%s',
            position=1,
            usedefault=True,
        ),
        use_checkerboard=dict(
            argstr='-c',
            position=3,
        ),
    )
    inputs = Overlay.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value