def test_SynthesizeFLASH_outputs():
    output_map = dict(out_file=dict())
    outputs = SynthesizeFLASH.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
def test_SynthesizeFLASH_outputs():
    output_map = dict(out_file=dict(), )
    outputs = SynthesizeFLASH.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Example #3
0
def test_SynthesizeFLASH_inputs():
    input_map = dict(
        args=dict(argstr='%s', ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        fixed_weighting=dict(
            argstr='-w',
            position=1,
        ),
        flip_angle=dict(
            argstr='%.2f',
            mandatory=True,
            position=3,
        ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        out_file=dict(
            argstr='%s',
            genfile=True,
        ),
        pd_image=dict(
            argstr='%s',
            mandatory=True,
            position=6,
        ),
        subjects_dir=dict(),
        t1_image=dict(
            argstr='%s',
            mandatory=True,
            position=5,
        ),
        te=dict(
            argstr='%.3f',
            mandatory=True,
            position=4,
        ),
        terminal_output=dict(
            mandatory=True,
            nohash=True,
        ),
        tr=dict(
            argstr='%.2f',
            mandatory=True,
            position=2,
        ),
    )
    inputs = SynthesizeFLASH.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
def test_SynthesizeFLASH_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    out_file=dict(argstr='%s',
    genfile=True,
    ),
    flip_angle=dict(position=3,
    mandatory=True,
    argstr='%.2f',
    ),
    args=dict(argstr='%s',
    ),
    tr=dict(position=2,
    mandatory=True,
    argstr='%.2f',
    ),
    fixed_weighting=dict(position=1,
    argstr='-w',
    ),
    pd_image=dict(position=6,
    mandatory=True,
    argstr='%s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    subjects_dir=dict(),
    te=dict(position=4,
    mandatory=True,
    argstr='%.3f',
    ),
    t1_image=dict(position=5,
    mandatory=True,
    argstr='%s',
    ),
    )
    inputs = SynthesizeFLASH.input_spec()

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