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
Exemplo n.º 2
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