Beispiel #1
0
def test_Camino2Trackvis_outputs():
    output_map = dict(trackvis=dict(),
    )
    outputs = Camino2Trackvis.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Beispiel #2
0
def test_Camino2Trackvis_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    data_dims=dict(argstr='-d %s',
    mandatory=True,
    position=4,
    sep=',',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    in_file=dict(argstr='-i %s',
    mandatory=True,
    position=1,
    ),
    min_length=dict(argstr='-l %d',
    position=3,
    units='mm',
    ),
    nifti_file=dict(argstr='--nifti %s',
    position=7,
    ),
    out_file=dict(argstr='-o %s',
    genfile=True,
    position=2,
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    voxel_dims=dict(argstr='-x %s',
    mandatory=True,
    position=5,
    sep=',',
    ),
    voxel_order=dict(argstr='--voxel-order %s',
    mandatory=True,
    position=6,
    ),
    )
    inputs = Camino2Trackvis.input_spec()

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