def test_FindCenterOfBrain_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    axis=dict(argstr='--axis %d',
    ),
    backgroundValue=dict(argstr='--backgroundValue %d',
    ),
    clippedImageMask=dict(argstr='--clippedImageMask %s',
    hash_files=False,
    ),
    closingSize=dict(argstr='--closingSize %d',
    ),
    debugAfterGridComputationsForegroundImage=dict(argstr='--debugAfterGridComputationsForegroundImage %s',
    hash_files=False,
    ),
    debugClippedImageMask=dict(argstr='--debugClippedImageMask %s',
    hash_files=False,
    ),
    debugDistanceImage=dict(argstr='--debugDistanceImage %s',
    hash_files=False,
    ),
    debugGridImage=dict(argstr='--debugGridImage %s',
    hash_files=False,
    ),
    debugTrimmedImage=dict(argstr='--debugTrimmedImage %s',
    hash_files=False,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    generateDebugImages=dict(argstr='--generateDebugImages ',
    ),
    headSizeEstimate=dict(argstr='--headSizeEstimate %f',
    ),
    headSizeLimit=dict(argstr='--headSizeLimit %f',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    imageMask=dict(argstr='--imageMask %s',
    ),
    inputVolume=dict(argstr='--inputVolume %s',
    ),
    maximize=dict(argstr='--maximize ',
    ),
    otsuPercentileThreshold=dict(argstr='--otsuPercentileThreshold %f',
    ),
    terminal_output=dict(nohash=True,
    ),
    )
    inputs = FindCenterOfBrain.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 #2
0
def test_FindCenterOfBrain_inputs():
    input_map = dict(
        args=dict(argstr='%s', ),
        axis=dict(argstr='--axis %d', ),
        backgroundValue=dict(argstr='--backgroundValue %d', ),
        clippedImageMask=dict(
            argstr='--clippedImageMask %s',
            hash_files=False,
        ),
        closingSize=dict(argstr='--closingSize %d', ),
        debugAfterGridComputationsForegroundImage=dict(
            argstr='--debugAfterGridComputationsForegroundImage %s',
            hash_files=False,
        ),
        debugClippedImageMask=dict(
            argstr='--debugClippedImageMask %s',
            hash_files=False,
        ),
        debugDistanceImage=dict(
            argstr='--debugDistanceImage %s',
            hash_files=False,
        ),
        debugGridImage=dict(
            argstr='--debugGridImage %s',
            hash_files=False,
        ),
        debugTrimmedImage=dict(
            argstr='--debugTrimmedImage %s',
            hash_files=False,
        ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        generateDebugImages=dict(argstr='--generateDebugImages ', ),
        headSizeEstimate=dict(argstr='--headSizeEstimate %f', ),
        headSizeLimit=dict(argstr='--headSizeLimit %f', ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        imageMask=dict(argstr='--imageMask %s', ),
        inputVolume=dict(argstr='--inputVolume %s', ),
        maximize=dict(argstr='--maximize ', ),
        otsuPercentileThreshold=dict(argstr='--otsuPercentileThreshold %f', ),
        terminal_output=dict(nohash=True, ),
    )
    inputs = FindCenterOfBrain.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_FindCenterOfBrain_outputs():
    output_map = dict(clippedImageMask=dict(),
    debugAfterGridComputationsForegroundImage=dict(),
    debugClippedImageMask=dict(),
    debugDistanceImage=dict(),
    debugGridImage=dict(),
    debugTrimmedImage=dict(),
    )
    outputs = FindCenterOfBrain.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Example #4
0
def test_FindCenterOfBrain_outputs():
    output_map = dict(
        clippedImageMask=dict(),
        debugAfterGridComputationsForegroundImage=dict(),
        debugClippedImageMask=dict(),
        debugDistanceImage=dict(),
        debugGridImage=dict(),
        debugTrimmedImage=dict(),
    )
    outputs = FindCenterOfBrain.output_spec()

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