Exemplo n.º 1
0
def test_ROIGen_outputs():
    output_map = dict(dict_file=dict(), roi_file=dict())
    outputs = ROIGen.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_ROIGen_outputs():
    output_map = dict(
        dict_file=dict(),
        roi_file=dict(),
    )
    outputs = ROIGen.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.º 3
0
def test_ROIGen_inputs():
    input_map = dict(
        LUT_file=dict(xor=["use_freesurfer_LUT"]),
        ignore_exception=dict(nohash=True, usedefault=True),
        out_dict_file=dict(genfile=True),
        use_freesurfer_LUT=dict(xor=["LUT_file"]),
        freesurfer_dir=dict(requires=["use_freesurfer_LUT"]),
        aparc_aseg_file=dict(mandatory=True),
        out_roi_file=dict(genfile=True),
    )
    inputs = ROIGen.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
Exemplo n.º 4
0
def test_ROIGen_inputs():
    input_map = dict(
        LUT_file=dict(xor=['use_freesurfer_LUT'], ),
        aparc_aseg_file=dict(mandatory=True, ),
        freesurfer_dir=dict(requires=['use_freesurfer_LUT'], ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        out_dict_file=dict(genfile=True, ),
        out_roi_file=dict(genfile=True, ),
        use_freesurfer_LUT=dict(xor=['LUT_file'], ),
    )
    inputs = ROIGen.input_spec()

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