예제 #1
0
def test_Denoise_outputs():
    output_map = dict(out_file=dict(), )
    outputs = Denoise.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_Denoise_outputs():
    output_map = dict(out_file=dict(),
    )
    outputs = Denoise.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
예제 #3
0
def test_Denoise_inputs():
    input_map = dict(block_radius=dict(),
    in_file=dict(mandatory=True,
    ),
    in_mask=dict(),
    noise_mask=dict(),
    noise_model=dict(mandatory=True,
    usedefault=True,
    ),
    patch_radius=dict(),
    )
    inputs = Denoise.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_Denoise_inputs():
    input_map = dict(
        block_radius=dict(),
        in_file=dict(mandatory=True, ),
        in_mask=dict(),
        noise_mask=dict(),
        noise_model=dict(
            mandatory=True,
            usedefault=True,
        ),
        patch_radius=dict(),
    )
    inputs = Denoise.input_spec()

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