예제 #1
0
def test_ContrastMgr_outputs():
    output_map = dict(
        copes=dict(), fstats=dict(), neffs=dict(), tstats=dict(), varcopes=dict(), zfstats=dict(), zstats=dict()
    )
    outputs = ContrastMgr.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_ContrastMgr_inputs():
    input_map = dict(
        args=dict(argstr='%s', ),
        contrast_num=dict(argstr='-cope', ),
        corrections=dict(
            copyfile=False,
            mandatory=True,
        ),
        dof_file=dict(
            argstr='',
            copyfile=False,
            mandatory=True,
        ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        fcon_file=dict(argstr='-f %s', ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        output_type=dict(),
        param_estimates=dict(
            argstr='',
            copyfile=False,
            mandatory=True,
        ),
        sigmasquareds=dict(
            argstr='',
            copyfile=False,
            mandatory=True,
            position=-2,
        ),
        suffix=dict(argstr='-suffix %s', ),
        tcon_file=dict(
            argstr='%s',
            mandatory=True,
            position=-1,
        ),
        terminal_output=dict(
            mandatory=True,
            nohash=True,
        ),
    )
    inputs = ContrastMgr.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_ContrastMgr_outputs():
    output_map = dict(
        copes=dict(),
        fstats=dict(),
        neffs=dict(),
        tstats=dict(),
        varcopes=dict(),
        zfstats=dict(),
        zstats=dict(),
    )
    outputs = ContrastMgr.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
예제 #4
0
def test_ContrastMgr_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    suffix=dict(argstr='-suffix %s',
    ),
    fcon_file=dict(argstr='-f %s',
    ),
    tcon_file=dict(position=-1,
    mandatory=True,
    argstr='%s',
    ),
    param_estimates=dict(copyfile=False,
    mandatory=True,
    argstr='',
    ),
    args=dict(argstr='%s',
    ),
    dof_file=dict(copyfile=False,
    mandatory=True,
    argstr='',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    corrections=dict(copyfile=False,
    mandatory=True,
    ),
    output_type=dict(),
    contrast_num=dict(argstr='-cope',
    ),
    sigmasquareds=dict(copyfile=False,
    mandatory=True,
    position=-2,
    argstr='',
    ),
    )
    inputs = ContrastMgr.input_spec()

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