Esempio n. 1
0
def test_BRAINSLmkTransform_inputs():
    input_map = dict(
        args=dict(argstr='%s', ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        inputFixedLandmarks=dict(argstr='--inputFixedLandmarks %s', ),
        inputMovingLandmarks=dict(argstr='--inputMovingLandmarks %s', ),
        inputMovingVolume=dict(argstr='--inputMovingVolume %s', ),
        inputReferenceVolume=dict(argstr='--inputReferenceVolume %s', ),
        numberOfThreads=dict(argstr='--numberOfThreads %d', ),
        outputAffineTransform=dict(
            argstr='--outputAffineTransform %s',
            hash_files=False,
        ),
        outputResampledVolume=dict(
            argstr='--outputResampledVolume %s',
            hash_files=False,
        ),
        terminal_output=dict(nohash=True, ),
    )
    inputs = BRAINSLmkTransform.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_BRAINSLmkTransform_outputs():
    output_map = dict(outputAffineTransform=dict(), outputResampledVolume=dict())
    outputs = BRAINSLmkTransform.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Esempio n. 3
0
def test_BRAINSLmkTransform_outputs():
    output_map = dict(
        outputAffineTransform=dict(),
        outputResampledVolume=dict(),
    )
    outputs = BRAINSLmkTransform.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_BRAINSLmkTransform_inputs():
    input_map = dict(
        args=dict(argstr="%s"),
        environ=dict(nohash=True, usedefault=True),
        ignore_exception=dict(nohash=True, usedefault=True),
        inputFixedLandmarks=dict(argstr="--inputFixedLandmarks %s"),
        inputMovingLandmarks=dict(argstr="--inputMovingLandmarks %s"),
        inputMovingVolume=dict(argstr="--inputMovingVolume %s"),
        inputReferenceVolume=dict(argstr="--inputReferenceVolume %s"),
        numberOfThreads=dict(argstr="--numberOfThreads %d"),
        outputAffineTransform=dict(argstr="--outputAffineTransform %s", hash_files=False),
        outputResampledVolume=dict(argstr="--outputResampledVolume %s", hash_files=False),
        terminal_output=dict(nohash=True),
    )
    inputs = BRAINSLmkTransform.input_spec()

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