def test_Means_outputs(): output_map = dict(out_file=dict(), ) outputs = Means.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_Means_outputs(): output_map = dict(out_file=dict()) outputs = Means.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_Means_inputs(): input_map = dict(args=dict(argstr='%s', ), count=dict(argstr='-count', ), environ=dict(nohash=True, usedefault=True, ), ignore_exception=dict(nohash=True, usedefault=True, ), in_file_a=dict(argstr='%s', mandatory=True, position=0, ), in_file_b=dict(argstr='%s', position=1, ), mask_inter=dict(argstr='-mask_inter', ), mask_union=dict(argstr='-mask_union', ), non_zero=dict(argstr='-non_zero', ), out_file=dict(argstr='-prefix %s', name_source='in_file_a', name_template='%s_mean', ), outputtype=dict(), scale=dict(argstr='-%sscale', ), sqr=dict(argstr='-sqr', ), std_dev=dict(argstr='-stdev', ), summ=dict(argstr='-sum', ), terminal_output=dict(mandatory=True, nohash=True, ), ) inputs = Means.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_Means_inputs(): input_map = dict( args=dict(argstr='%s', ), count=dict(argstr='-count', ), environ=dict( nohash=True, usedefault=True, ), ignore_exception=dict( nohash=True, usedefault=True, ), in_file_a=dict( argstr='%s', mandatory=True, position=0, ), in_file_b=dict( argstr='%s', position=1, ), mask_inter=dict(argstr='-mask_inter', ), mask_union=dict(argstr='-mask_union', ), non_zero=dict(argstr='-non_zero', ), out_file=dict( argstr='-prefix %s', name_source='in_file_a', name_template='%s_mean', ), outputtype=dict(), scale=dict(argstr='-%sscale', ), sqr=dict(argstr='-sqr', ), std_dev=dict(argstr='-stdev', ), summ=dict(argstr='-sum', ), terminal_output=dict( mandatory=True, nohash=True, ), ) inputs = Means.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_Means_inputs(): input_map = dict( args=dict(argstr="%s"), count=dict(argstr="-count"), environ=dict(nohash=True, usedefault=True), ignore_exception=dict(nohash=True, usedefault=True), in_file_a=dict(argstr="%s", mandatory=True, position=0), in_file_b=dict(argstr="%s", position=1), mask_inter=dict(argstr="-mask_inter"), mask_union=dict(argstr="-mask_union"), non_zero=dict(argstr="-non_zero"), out_file=dict(argstr="-prefix %s", name_source="in_file_a", name_template="%s_mean"), outputtype=dict(), scale=dict(argstr="-%sscale"), sqr=dict(argstr="-sqr"), std_dev=dict(argstr="-stdev"), summ=dict(argstr="-sum"), terminal_output=dict(nohash=True), ) inputs = Means.input_spec() for key, metadata in input_map.items(): for metakey, value in metadata.items(): yield assert_equal, getattr(inputs.traits()[key], metakey), value