Exemplo n.º 1
0
def test_TrackBootstrap_outputs():
    output_map = dict(tracked=dict(), )
    outputs = TrackBootstrap.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_TrackBootstrap_outputs():
    output_map = dict(tracked=dict())
    outputs = TrackBootstrap.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_TrackBootstrap_inputs():
    input_map = dict(
        anisfile=dict(argstr="-anisfile %s"),
        anisthresh=dict(argstr="-anisthresh %f"),
        args=dict(argstr="%s"),
        bgmask=dict(argstr="-bgmask %s"),
        bsdatafiles=dict(argstr="-bsdatafile %s", mandatory=True),
        curveinterval=dict(argstr="-curveinterval %f", requires=["curvethresh"]),
        curvethresh=dict(argstr="-curvethresh %f"),
        data_dims=dict(argstr="-datadims %s", units="voxels"),
        environ=dict(nohash=True, usedefault=True),
        gzip=dict(argstr="-gzip"),
        ignore_exception=dict(nohash=True, usedefault=True),
        in_file=dict(argstr="-inputfile %s", position=1),
        inputdatatype=dict(argstr="-inputdatatype %s"),
        inputmodel=dict(argstr="-inputmodel %s", usedefault=True),
        interpolator=dict(argstr="-interpolator %s"),
        inversion=dict(argstr="-inversion %s"),
        ipthresh=dict(argstr="-ipthresh %f"),
        iterations=dict(argstr="-iterations %d", units="NA"),
        maxcomponents=dict(argstr="-maxcomponents %d", units="NA"),
        numpds=dict(argstr="-numpds %d", units="NA"),
        out_file=dict(argstr="-outputfile %s", genfile=True, position=-1),
        output_root=dict(argstr="-outputroot %s", position=-1),
        outputtracts=dict(argstr="-outputtracts %s"),
        scheme_file=dict(argstr="-schemefile %s", mandatory=True),
        seed_file=dict(argstr="-seedfile %s", position=2),
        stepsize=dict(argstr="-stepsize %f", requires=["tracker"]),
        terminal_output=dict(mandatory=True, nohash=True),
        tracker=dict(argstr="-tracker %s", usedefault=True),
        voxel_dims=dict(argstr="-voxeldims %s", units="mm"),
    )
    inputs = TrackBootstrap.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_TrackBootstrap_inputs():
    input_map = dict(
        anisfile=dict(argstr='-anisfile %s', ),
        anisthresh=dict(argstr='-anisthresh %f', ),
        args=dict(argstr='%s', ),
        bgmask=dict(argstr='-bgmask %s', ),
        bsdatafiles=dict(
            argstr='-bsdatafile %s',
            mandatory=True,
        ),
        curveinterval=dict(
            argstr='-curveinterval %f',
            requires=['curvethresh'],
        ),
        curvethresh=dict(argstr='-curvethresh %f', ),
        data_dims=dict(
            argstr='-datadims %s',
            units='voxels',
        ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        gzip=dict(argstr='-gzip', ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        in_file=dict(
            argstr='-inputfile %s',
            position=1,
        ),
        inputdatatype=dict(argstr='-inputdatatype %s', ),
        inputmodel=dict(
            argstr='-inputmodel %s',
            usedefault=True,
        ),
        interpolator=dict(argstr='-interpolator %s', ),
        inversion=dict(argstr='-inversion %s', ),
        ipthresh=dict(argstr='-ipthresh %f', ),
        iterations=dict(
            argstr='-iterations %d',
            units='NA',
        ),
        maxcomponents=dict(
            argstr='-maxcomponents %d',
            units='NA',
        ),
        numpds=dict(
            argstr='-numpds %d',
            units='NA',
        ),
        out_file=dict(
            argstr='-outputfile %s',
            genfile=True,
            position=-1,
        ),
        output_root=dict(
            argstr='-outputroot %s',
            position=-1,
        ),
        outputtracts=dict(argstr='-outputtracts %s', ),
        scheme_file=dict(
            argstr='-schemefile %s',
            mandatory=True,
        ),
        seed_file=dict(
            argstr='-seedfile %s',
            position=2,
        ),
        stepsize=dict(
            argstr='-stepsize %f',
            requires=['tracker'],
        ),
        terminal_output=dict(nohash=True, ),
        tracker=dict(
            argstr='-tracker %s',
            usedefault=True,
        ),
        voxel_dims=dict(
            argstr='-voxeldims %s',
            units='mm',
        ),
    )
    inputs = TrackBootstrap.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.º 5
0
def test_TrackBootstrap_inputs():
    input_map = dict(bsdatafiles=dict(mandatory=True,
    argstr='-bsdatafile %s',
    ),
    iterations=dict(units='NA',
    argstr='-iterations %d',
    ),
    numpds=dict(units='NA',
    argstr='-numpds %d',
    ),
    data_dims=dict(units='voxels',
    argstr='-datadims %s',
    ),
    outputtracts=dict(argstr='-outputtracts %s',
    ),
    scheme_file=dict(mandatory=True,
    argstr='-schemefile %s',
    ),
    seed_file=dict(position=2,
    argstr='-seedfile %s',
    ),
    maxcomponents=dict(units='NA',
    argstr='-maxcomponents %d',
    ),
    in_file=dict(position=1,
    mandatory=True,
    argstr='-inputfile %s',
    ),
    ipthresh=dict(argstr='-ipthresh %f',
    ),
    voxel_dims=dict(units='mm',
    argstr='-voxeldims %s',
    ),
    output_root=dict(position=-1,
    argstr='-outputroot %s',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    args=dict(argstr='%s',
    ),
    inputmodel=dict(usedefault=True,
    argstr='-inputmodel %s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    anisfile=dict(argstr='-anisfile %s',
    ),
    inversion=dict(argstr='-inversion %s',
    ),
    out_file=dict(position=-1,
    genfile=True,
    argstr='-outputfile %s',
    ),
    curvethresh=dict(argstr='-curvethresh %f',
    ),
    inputdatatype=dict(argstr='-inputdatatype %s',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    gzip=dict(argstr='-gzip',
    ),
    bgmask=dict(argstr='-bgmask %s',
    ),
    anisthresh=dict(argstr='-anisthresh %f',
    ),
    )
    inputs = TrackBootstrap.input_spec()

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