Ejemplo n.º 1
0
def test_ApplyTOPUP_outputs():
    output_map = dict(out_corrected=dict(), )
    outputs = ApplyTOPUP.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Ejemplo n.º 2
0
def test_ApplyTOPUP_outputs():
    output_map = dict(out_corrected=dict())
    outputs = ApplyTOPUP.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Ejemplo n.º 3
0
def test_ApplyTOPUP_inputs():
    input_map = dict(
        args=dict(argstr='%s', ),
        datatype=dict(argstr='-d=%s', ),
        encoding_file=dict(
            argstr='--datain=%s',
            mandatory=True,
        ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        in_files=dict(
            argstr='--imain=%s',
            mandatory=True,
            sep=',',
        ),
        in_index=dict(
            argstr='--inindex=%s',
            mandatory=True,
            sep=',',
        ),
        in_topup_fieldcoef=dict(
            argstr='--topup=%s',
            copyfile=False,
            requires=['in_topup_movpar'],
        ),
        in_topup_movpar=dict(
            copyfile=False,
            requires=['in_topup_fieldcoef'],
        ),
        interp=dict(argstr='--interp=%s', ),
        method=dict(argstr='--method=%s', ),
        out_corrected=dict(
            argstr='--out=%s',
            name_source=['in_files'],
            name_template='%s_corrected',
        ),
        output_type=dict(),
        terminal_output=dict(
            mandatory=True,
            nohash=True,
        ),
    )
    inputs = ApplyTOPUP.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
Ejemplo n.º 4
0
def test_ApplyTOPUP_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    datatype=dict(argstr='-d=%s',
    ),
    encoding_file=dict(argstr='--datain=%s',
    mandatory=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    in_files=dict(argstr='--imain=%s',
    mandatory=True,
    sep=',',
    ),
    in_index=dict(argstr='--inindex=%s',
    mandatory=True,
    sep=',',
    ),
    in_topup_fieldcoef=dict(argstr='--topup=%s',
    copyfile=False,
    requires=['in_topup_movpar'],
    ),
    in_topup_movpar=dict(copyfile=False,
    requires=['in_topup_fieldcoef'],
    ),
    interp=dict(argstr='--interp=%s',
    ),
    method=dict(argstr='--method=%s',
    ),
    out_corrected=dict(argstr='--out=%s',
    name_source=['in_files'],
    name_template='%s_corrected',
    ),
    output_type=dict(),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    )
    inputs = ApplyTOPUP.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
Ejemplo n.º 5
0
def test_ApplyTOPUP_inputs():
    input_map = dict(
        args=dict(argstr='%s', ),
        datatype=dict(argstr='-d=%s', ),
        encoding_file=dict(
            argstr='--datain=%s',
            mandatory=True,
        ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        in_files=dict(
            argstr='%s',
            mandatory=True,
        ),
        in_index=dict(
            argstr='%s',
            mandatory=True,
        ),
        in_topup=dict(
            argstr='--topup=%s',
            mandatory=True,
        ),
        interp=dict(argstr='--interp=%s', ),
        method=dict(argstr='--method=%s', ),
        out_base=dict(argstr='--out=%s', ),
        output_type=dict(),
        terminal_output=dict(
            mandatory=True,
            nohash=True,
        ),
    )
    inputs = ApplyTOPUP.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
Ejemplo n.º 6
0
def test_ApplyTOPUP_inputs():
    input_map = dict(
        args=dict(argstr="%s"),
        datatype=dict(argstr="-d=%s"),
        encoding_file=dict(argstr="--datain=%s", mandatory=True),
        environ=dict(nohash=True, usedefault=True),
        ignore_exception=dict(nohash=True, usedefault=True),
        in_files=dict(argstr="%s", mandatory=True),
        in_index=dict(argstr="%s", mandatory=True),
        in_topup=dict(argstr="--topup=%s", mandatory=True),
        interp=dict(argstr="--interp=%s"),
        method=dict(argstr="--method=%s"),
        out_base=dict(argstr="--out=%s"),
        output_type=dict(),
        terminal_output=dict(mandatory=True, nohash=True),
    )
    inputs = ApplyTOPUP.input_spec()

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