예제 #1
0
 def __init__(self, in_file='path', **options):
     from nipype.interfaces.dcmstack import SplitNifti
     split = SplitNifti()
     split.inputs.in_file = in_file
     for ef in options:
         setattr(split.inputs, ef, options[ef])
     self.res = split.run()
예제 #2
0
def test_SplitNifti_outputs():
    output_map = dict(out_list=dict(), )
    outputs = SplitNifti.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_SplitNifti_outputs():
    output_map = dict(out_list=dict(),
    )
    outputs = SplitNifti.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
예제 #4
0
def test_SplitNifti_inputs():
    input_map = dict(
        in_file=dict(mandatory=True, ),
        out_ext=dict(usedefault=True, ),
        out_format=dict(),
        split_dim=dict(),
    )
    inputs = SplitNifti.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
예제 #5
0
def test_SplitNifti_inputs():
    input_map = dict(in_file=dict(mandatory=True,
    ),
    out_ext=dict(usedefault=True,
    ),
    out_format=dict(),
    split_dim=dict(),
    )
    inputs = SplitNifti.input_spec()

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