コード例 #1
0
ファイル: test_auto_Allineate.py プロジェクト: forgit/nipype
def test_Allineate_outputs():
    output_map = dict(matrix=dict(), out_file=dict())
    outputs = Allineate.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_Allineate_outputs():
    output_map = dict(matrix=dict(),
    out_file=dict(),
    )
    outputs = Allineate.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
コード例 #3
0
ファイル: test_auto_Allineate.py プロジェクト: forgit/nipype
def test_Allineate_inputs():
    input_map = dict(
        args=dict(argstr="%s"),
        autobox=dict(argstr="-autobox"),
        automask=dict(argstr="-automask+%d"),
        autoweight=dict(argstr="-autoweight%s"),
        center_of_mass=dict(argstr="-cmass%s"),
        check=dict(argstr="-check %s"),
        convergence=dict(argstr="-conv %f"),
        cost=dict(argstr="-cost %s"),
        environ=dict(nohash=True, usedefault=True),
        epi=dict(argstr="-EPI"),
        final_interpolation=dict(argstr="-final %s"),
        fine_blur=dict(argstr="-fineblur %f"),
        ignore_exception=dict(nohash=True, usedefault=True),
        in_file=dict(argstr="-source %s", copyfile=False, mandatory=True, position=-1),
        in_matrix=dict(argstr="-1Dmatrix_apply %s", position=-3),
        in_param_file=dict(argstr="-1Dparam_apply %s"),
        interpolation=dict(argstr="-interp %s"),
        master=dict(argstr="-master %s"),
        newgrid=dict(argstr="-newgrid %f"),
        nmatch=dict(argstr="-nmatch %d"),
        no_pad=dict(argstr="-nopad"),
        nomask=dict(argstr="-nomask"),
        nwarp=dict(argstr="-nwarp %s"),
        nwarp_fixdep=dict(argstr="-nwarp_fixdep%s"),
        nwarp_fixmot=dict(argstr="-nwarp_fixmot%s"),
        one_pass=dict(argstr="-onepass"),
        out_file=dict(argstr="-prefix %s", genfile=True, name_source="%s_allineate", position=-2),
        out_matrix=dict(argstr="-1Dmatrix_save %s"),
        out_param_file=dict(argstr="-1Dparam_save %s"),
        out_weight_file=dict(argstr="-wtprefix %s"),
        outputtype=dict(),
        reference=dict(argstr="-base %s"),
        replacebase=dict(argstr="-replacebase"),
        replacemeth=dict(argstr="-replacemeth %s"),
        source_automask=dict(argstr="-source_automask+%d"),
        source_mask=dict(argstr="-source_mask %s"),
        terminal_output=dict(nohash=True),
        two_best=dict(argstr="-twobest %d"),
        two_blur=dict(argstr="-twoblur"),
        two_first=dict(argstr="-twofirst"),
        two_pass=dict(argstr="-twopass"),
        usetemp=dict(argstr="-usetemp"),
        warp_type=dict(argstr="-warp %s"),
        warpfreeze=dict(argstr="-warpfreeze"),
        weight_file=dict(argstr="-weight %s"),
        zclip=dict(argstr="-zclip"),
    )
    inputs = Allineate.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
コード例 #4
0
def test_Allineate_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    autobox=dict(argstr='-autobox',
    ),
    automask=dict(argstr='-automask+%d',
    ),
    autoweight=dict(argstr='-autoweight%s',
    ),
    center_of_mass=dict(argstr='-cmass%s',
    ),
    check=dict(argstr='-check %s',
    ),
    convergence=dict(argstr='-conv %f',
    ),
    cost=dict(argstr='-cost %s',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    epi=dict(argstr='-EPI',
    ),
    final_interpolation=dict(argstr='-final %s',
    ),
    fine_blur=dict(argstr='-fineblur %f',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    in_file=dict(argstr='-source %s',
    copyfile=False,
    mandatory=True,
    position=-1,
    ),
    in_matrix=dict(argstr='-1Dmatrix_apply %s',
    position=-3,
    ),
    in_param_file=dict(argstr='-1Dparam_apply %s',
    ),
    interpolation=dict(argstr='-interp %s',
    ),
    master=dict(argstr='-master %s',
    ),
    newgrid=dict(argstr='-newgrid %f',
    ),
    nmatch=dict(argstr='-nmatch %d',
    ),
    no_pad=dict(argstr='-nopad',
    ),
    nomask=dict(argstr='-nomask',
    ),
    nwarp=dict(argstr='-nwarp %s',
    ),
    nwarp_fixdep=dict(argstr='-nwarp_fixdep%s',
    ),
    nwarp_fixmot=dict(argstr='-nwarp_fixmot%s',
    ),
    one_pass=dict(argstr='-onepass',
    ),
    out_file=dict(argstr='-prefix %s',
    genfile=True,
    name_source='%s_allineate',
    position=-2,
    ),
    out_matrix=dict(argstr='-1Dmatrix_save %s',
    ),
    out_param_file=dict(argstr='-1Dparam_save %s',
    ),
    out_weight_file=dict(argstr='-wtprefix %s',
    ),
    outputtype=dict(),
    reference=dict(argstr='-base %s',
    ),
    replacebase=dict(argstr='-replacebase',
    ),
    replacemeth=dict(argstr='-replacemeth %s',
    ),
    source_automask=dict(argstr='-source_automask+%d',
    ),
    source_mask=dict(argstr='-source_mask %s',
    ),
    terminal_output=dict(nohash=True,
    ),
    two_best=dict(argstr='-twobest %d',
    ),
    two_blur=dict(argstr='-twoblur',
    ),
    two_first=dict(argstr='-twofirst',
    ),
    two_pass=dict(argstr='-twopass',
    ),
    usetemp=dict(argstr='-usetemp',
    ),
    warp_type=dict(argstr='-warp %s',
    ),
    warpfreeze=dict(argstr='-warpfreeze',
    ),
    weight_file=dict(argstr='-weight %s',
    ),
    zclip=dict(argstr='-zclip',
    ),
    )
    inputs = Allineate.input_spec()

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