def test_LinearRegistration_outputs():
    output_map = dict(outputtransform=dict(),
    resampledmovingfilename=dict(),
    )
    outputs = LinearRegistration.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_LinearRegistration_outputs():
    output_map = dict(outputtransform=dict(),
    resampledmovingfilename=dict(),
    )
    outputs = LinearRegistration.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_LinearRegistration_inputs():
    input_map = dict(
        FixedImageFileName=dict(
            argstr='%s',
            position=-2,
        ),
        MovingImageFileName=dict(
            argstr='%s',
            position=-1,
        ),
        args=dict(argstr='%s', ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        fixedsmoothingfactor=dict(argstr='--fixedsmoothingfactor %d', ),
        histogrambins=dict(argstr='--histogrambins %d', ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        initialtransform=dict(argstr='--initialtransform %s', ),
        iterations=dict(
            argstr='--iterations %s',
            sep=',',
        ),
        learningrate=dict(
            argstr='--learningrate %s',
            sep=',',
        ),
        movingsmoothingfactor=dict(argstr='--movingsmoothingfactor %d', ),
        outputtransform=dict(
            argstr='--outputtransform %s',
            hash_files=False,
        ),
        resampledmovingfilename=dict(
            argstr='--resampledmovingfilename %s',
            hash_files=False,
        ),
        spatialsamples=dict(argstr='--spatialsamples %d', ),
        terminal_output=dict(
            mandatory=True,
            nohash=True,
        ),
        translationscale=dict(argstr='--translationscale %f', ),
    )
    inputs = LinearRegistration.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
def test_LinearRegistration_inputs():
    input_map = dict(FixedImageFileName=dict(argstr='%s',
    position=-2,
    ),
    MovingImageFileName=dict(argstr='%s',
    position=-1,
    ),
    args=dict(argstr='%s',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    fixedsmoothingfactor=dict(argstr='--fixedsmoothingfactor %d',
    ),
    histogrambins=dict(argstr='--histogrambins %d',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    initialtransform=dict(argstr='--initialtransform %s',
    ),
    iterations=dict(argstr='--iterations %s',
    sep=',',
    ),
    learningrate=dict(argstr='--learningrate %s',
    sep=',',
    ),
    movingsmoothingfactor=dict(argstr='--movingsmoothingfactor %d',
    ),
    outputtransform=dict(argstr='--outputtransform %s',
    hash_files=False,
    ),
    resampledmovingfilename=dict(argstr='--resampledmovingfilename %s',
    hash_files=False,
    ),
    spatialsamples=dict(argstr='--spatialsamples %d',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    translationscale=dict(argstr='--translationscale %f',
    ),
    )
    inputs = LinearRegistration.input_spec()

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