def test_ComputeTDI_outputs(): output_map = dict(out_file=dict(), ) outputs = ComputeTDI.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_ComputeTDI_inputs(): input_map = dict( args=dict(argstr='%s', ), contrast=dict(argstr='-constrast %s', ), data_type=dict(argstr='-datatype %s', ), dixel=dict(argstr='-dixel %s', ), ends_only=dict(argstr='-ends_only', ), environ=dict( nohash=True, usedefault=True, ), fwhm_tck=dict(argstr='-fwhm_tck %f', ), ignore_exception=dict( nohash=True, usedefault=True, ), in_file=dict( argstr='%s', mandatory=True, position=-2, ), in_map=dict(argstr='-image %s', ), map_zero=dict(argstr='-map_zero', ), max_tod=dict(argstr='-tod %d', ), nthreads=dict( argstr='-nthreads %d', nohash=True, ), out_file=dict( argstr='%s', position=-1, usedefault=True, ), precise=dict(argstr='-precise', ), reference=dict(argstr='-template %s', ), stat_tck=dict(argstr='-stat_tck %s', ), stat_vox=dict(argstr='-stat_vox %s', ), tck_weights=dict(argstr='-tck_weights_in %s', ), terminal_output=dict(nohash=True, ), upsample=dict(argstr='-upsample %d', ), use_dec=dict(argstr='-dec', ), vox_size=dict( argstr='-vox %s', sep=',', ), ) inputs = ComputeTDI.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_ComputeTDI_inputs(): input_map = dict(args=dict(argstr='%s', ), contrast=dict(argstr='-constrast %s', ), data_type=dict(argstr='-datatype %s', ), dixel=dict(argstr='-dixel %s', ), ends_only=dict(argstr='-ends_only', ), environ=dict(nohash=True, usedefault=True, ), fwhm_tck=dict(argstr='-fwhm_tck %f', ), ignore_exception=dict(nohash=True, usedefault=True, ), in_file=dict(argstr='%s', mandatory=True, position=-2, ), in_map=dict(argstr='-image %s', ), map_zero=dict(argstr='-map_zero', ), max_tod=dict(argstr='-tod %d', ), nthreads=dict(argstr='-nthreads %d', nohash=True, ), out_file=dict(argstr='%s', position=-1, usedefault=True, ), precise=dict(argstr='-precise', ), reference=dict(argstr='-template %s', ), stat_tck=dict(argstr='-stat_tck %s', ), stat_vox=dict(argstr='-stat_vox %s', ), tck_weights=dict(argstr='-tck_weights_in %s', ), terminal_output=dict(nohash=True, ), upsample=dict(argstr='-upsample %d', ), use_dec=dict(argstr='-dec', ), vox_size=dict(argstr='-vox %s', sep=',', ), ) inputs = ComputeTDI.input_spec() for key, metadata in input_map.items(): for metakey, value in metadata.items(): yield assert_equal, getattr(inputs.traits()[key], metakey), value