def test_BRAINSAlignMSP_outputs():
    output_map = dict(OutputresampleMSP=dict(),
    resultsDir=dict(),
    )
    outputs = BRAINSAlignMSP.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_BRAINSAlignMSP_outputs():
    output_map = dict(
        OutputresampleMSP=dict(),
        resultsDir=dict(),
    )
    outputs = BRAINSAlignMSP.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_BRAINSAlignMSP_inputs():
    input_map = dict(BackgroundFillValue=dict(argstr='--BackgroundFillValue %s',
    ),
    OutputresampleMSP=dict(argstr='--OutputresampleMSP %s',
    hash_files=False,
    ),
    args=dict(argstr='%s',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    inputVolume=dict(argstr='--inputVolume %s',
    ),
    interpolationMode=dict(argstr='--interpolationMode %s',
    ),
    mspQualityLevel=dict(argstr='--mspQualityLevel %d',
    ),
    numberOfThreads=dict(argstr='--numberOfThreads %d',
    ),
    rescaleIntensities=dict(argstr='--rescaleIntensities ',
    ),
    rescaleIntensitiesOutputRange=dict(argstr='--rescaleIntensitiesOutputRange %s',
    sep=',',
    ),
    resultsDir=dict(argstr='--resultsDir %s',
    hash_files=False,
    ),
    terminal_output=dict(nohash=True,
    ),
    trimRescaledIntensities=dict(argstr='--trimRescaledIntensities %f',
    ),
    verbose=dict(argstr='--verbose ',
    ),
    writedebuggingImagesLevel=dict(argstr='--writedebuggingImagesLevel %d',
    ),
    )
    inputs = BRAINSAlignMSP.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_BRAINSAlignMSP_inputs():
    input_map = dict(
        BackgroundFillValue=dict(argstr='--BackgroundFillValue %s', ),
        OutputresampleMSP=dict(
            argstr='--OutputresampleMSP %s',
            hash_files=False,
        ),
        args=dict(argstr='%s', ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        inputVolume=dict(argstr='--inputVolume %s', ),
        interpolationMode=dict(argstr='--interpolationMode %s', ),
        mspQualityLevel=dict(argstr='--mspQualityLevel %d', ),
        numberOfThreads=dict(argstr='--numberOfThreads %d', ),
        rescaleIntensities=dict(argstr='--rescaleIntensities ', ),
        rescaleIntensitiesOutputRange=dict(
            argstr='--rescaleIntensitiesOutputRange %s',
            sep=',',
        ),
        resultsDir=dict(
            argstr='--resultsDir %s',
            hash_files=False,
        ),
        terminal_output=dict(nohash=True, ),
        trimRescaledIntensities=dict(argstr='--trimRescaledIntensities %f', ),
        verbose=dict(argstr='--verbose ', ),
        writedebuggingImagesLevel=dict(
            argstr='--writedebuggingImagesLevel %d', ),
    )
    inputs = BRAINSAlignMSP.input_spec()

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