Esempio n. 1
0
def test_Concatenate_outputs():
    output_map = dict(concatenated_file=dict(), )
    outputs = Concatenate.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Esempio n. 2
0
def test_Concatenate_outputs():
    output_map = dict(concatenated_file=dict(),
    )
    outputs = Concatenate.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Esempio n. 3
0
def test_Concatenate_inputs():
    input_map = dict(sort=dict(argstr='--sort',
    ),
    sign=dict(argstr='--%s',
    ),
    vote=dict(argstr='--vote',
    ),
    gmean=dict(argstr='--gmean %d',
    ),
    mean_div_n=dict(argstr='--mean-div-n',
    ),
    stats=dict(argstr='--%s',
    ),
    concatenated_file=dict(genfile=True,
    argstr='--o %s',
    ),
    combine=dict(argstr='--combine',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    paired_stats=dict(argstr='--paired-%s',
    ),
    multiply_by=dict(argstr='--mul %f',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    args=dict(argstr='%s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    subjects_dir=dict(),
    multiply_matrix_file=dict(argstr='--mtx %s',
    ),
    in_files=dict(mandatory=True,
    argstr='--i %s...',
    ),
    add_val=dict(argstr='--add %f',
    ),
    max_bonfcor=dict(argstr='--max-bonfcor',
    ),
    keep_dtype=dict(argstr='--keep-datatype',
    ),
    mask_file=dict(argstr='--mask %s',
    ),
    max_index=dict(argstr='--max-index',
    ),
    )
    inputs = Concatenate.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
Esempio n. 4
0
def test_Concatenate_inputs():
    input_map = dict(add_val=dict(argstr='--add %f',
    ),
    args=dict(argstr='%s',
    ),
    combine=dict(argstr='--combine',
    ),
    concatenated_file=dict(argstr='--o %s',
    genfile=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    gmean=dict(argstr='--gmean %d',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    in_files=dict(argstr='--i %s...',
    mandatory=True,
    ),
    keep_dtype=dict(argstr='--keep-datatype',
    ),
    mask_file=dict(argstr='--mask %s',
    ),
    max_bonfcor=dict(argstr='--max-bonfcor',
    ),
    max_index=dict(argstr='--max-index',
    ),
    mean_div_n=dict(argstr='--mean-div-n',
    ),
    multiply_by=dict(argstr='--mul %f',
    ),
    multiply_matrix_file=dict(argstr='--mtx %s',
    ),
    paired_stats=dict(argstr='--paired-%s',
    ),
    sign=dict(argstr='--%s',
    ),
    sort=dict(argstr='--sort',
    ),
    stats=dict(argstr='--%s',
    ),
    subjects_dir=dict(),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    vote=dict(argstr='--vote',
    ),
    )
    inputs = Concatenate.input_spec()

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