Example #1
0
def test_EstimateResponseForSH_outputs():
    output_map = dict(response=dict(), )
    outputs = EstimateResponseForSH.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
def test_EstimateResponseForSH_outputs():
    output_map = dict(response=dict())
    outputs = EstimateResponseForSH.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
def test_EstimateResponseForSH_inputs():
    input_map = dict(out_filename=dict(position=-1,
    genfile=True,
    argstr='%s',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    args=dict(argstr='%s',
    ),
    mask_image=dict(position=-2,
    mandatory=True,
    argstr='%s',
    ),
    maximum_harmonic_order=dict(argstr='-lmax %s',
    ),
    normalise=dict(argstr='-normalise',
    ),
    quiet=dict(argstr='-quiet',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    in_file=dict(position=-3,
    mandatory=True,
    argstr='%s',
    ),
    debug=dict(argstr='-debug',
    ),
    encoding_file=dict(position=1,
    mandatory=True,
    argstr='-grad %s',
    ),
    )
    inputs = EstimateResponseForSH.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
Example #4
0
def test_EstimateResponseForSH_inputs():
    input_map = dict(
        args=dict(argstr='%s', ),
        debug=dict(argstr='-debug', ),
        encoding_file=dict(
            argstr='-grad %s',
            mandatory=True,
            position=1,
        ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        in_file=dict(
            argstr='%s',
            mandatory=True,
            position=-3,
        ),
        mask_image=dict(
            argstr='%s',
            mandatory=True,
            position=-2,
        ),
        maximum_harmonic_order=dict(argstr='-lmax %s', ),
        normalise=dict(argstr='-normalise', ),
        out_filename=dict(
            argstr='%s',
            genfile=True,
            position=-1,
        ),
        quiet=dict(argstr='-quiet', ),
        terminal_output=dict(nohash=True, ),
    )
    inputs = EstimateResponseForSH.input_spec()

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