示例#1
0
def test_MRConvert_outputs():
    output_map = dict(converted=dict(), )
    outputs = MRConvert.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
示例#2
0
def test_MRConvert_inputs():
    input_map = dict(out_filename=dict(position=-1,
    genfile=True,
    argstr='%s',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    layout=dict(position=2,
    argstr='-output %s',
    ),
    extension=dict(position=2,
    usedefault=True,
    ),
    extract_at_coordinate=dict(argstr='%s',
    sep=',',
    position=2,
    ),
    offset_bias=dict(units='mm',
    position=3,
    argstr='-scale %d',
    ),
    resample=dict(units='mm',
    position=3,
    argstr='-scale %d',
    ),
    args=dict(argstr='%s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    in_file=dict(position=-2,
    mandatory=True,
    argstr='%s',
    ),
    prs=dict(position=3,
    argstr='-prs',
    ),
    extract_at_axis=dict(position=1,
    argstr='-coord %s',
    ),
    replace_NaN_with_zero=dict(position=3,
    argstr='-zero',
    ),
    voxel_dims=dict(argstr='-vox %s',
    sep=',',
    position=3,
    ),
    output_datatype=dict(position=2,
    argstr='-output %s',
    ),
    )
    inputs = MRConvert.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
示例#3
0
def test_MRConvert_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    extension=dict(position=2,
    usedefault=True,
    ),
    extract_at_axis=dict(argstr='-coord %s',
    position=1,
    ),
    extract_at_coordinate=dict(argstr='%s',
    position=2,
    sep=',',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    in_file=dict(argstr='%s',
    mandatory=True,
    position=-2,
    ),
    layout=dict(argstr='-output %s',
    position=2,
    ),
    offset_bias=dict(argstr='-scale %d',
    position=3,
    units='mm',
    ),
    out_filename=dict(argstr='%s',
    genfile=True,
    position=-1,
    ),
    output_datatype=dict(argstr='-output %s',
    position=2,
    ),
    prs=dict(argstr='-prs',
    position=3,
    ),
    replace_NaN_with_zero=dict(argstr='-zero',
    position=3,
    ),
    resample=dict(argstr='-scale %d',
    position=3,
    units='mm',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    voxel_dims=dict(argstr='-vox %s',
    position=3,
    sep=',',
    ),
    )
    inputs = MRConvert.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_MRConvert_outputs():
    output_map = dict(converted=dict(),
    )
    outputs = MRConvert.output_spec()

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