def test_Parcellate_outputs():
    output_map = dict(aseg_file=dict(),
    ribbon_file=dict(),
    roiv_file=dict(),
    roi_file_in_structural_space=dict(),
    white_matter_mask_file=dict(),
    cc_unknown_file=dict(),
    dilated_roi_file_in_structural_space=dict(),
    roi_file=dict(),
    )
    outputs = Parcellate.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Exemple #2
0
def test_Parcellate_outputs():
    output_map = dict(
        aseg_file=dict(),
        cc_unknown_file=dict(),
        dilated_roi_file_in_structural_space=dict(),
        ribbon_file=dict(),
        roi_file=dict(),
        roi_file_in_structural_space=dict(),
        roiv_file=dict(),
        white_matter_mask_file=dict(),
    )
    outputs = Parcellate.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
Exemple #3
0
def test_Parcellate_inputs():
    input_map = dict(
        dilation=dict(usedefault=True, ),
        freesurfer_dir=dict(),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        out_roi_file=dict(genfile=True, ),
        parcellation_name=dict(usedefault=True, ),
        subject_id=dict(mandatory=True, ),
        subjects_dir=dict(),
    )
    inputs = Parcellate.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_Parcellate_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    subject_id=dict(mandatory=True,
    ),
    freesurfer_dir=dict(),
    subjects_dir=dict(),
    out_roi_file=dict(genfile=True,
    ),
    dilation=dict(usedefault=True,
    ),
    parcellation_name=dict(usedefault=True,
    ),
    )
    inputs = Parcellate.input_spec()

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