Example #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()
Example #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
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
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
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