def test_VecReg_outputs(): output_map = dict(out_file=dict(), ) outputs = VecReg.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_VecReg_inputs(): input_map = dict(ignore_exception=dict(nohash=True, usedefault=True, ), warp_field=dict(argstr='-w %s', ), affine_mat=dict(argstr='-t %s', ), out_file=dict(argstr='-o %s', hash_files=False, genfile=True, ), rotation_warp=dict(argstr='--rotwarp=%s', ), args=dict(argstr='%s', ), mask=dict(argstr='-m %s', ), rotation_mat=dict(argstr='--rotmat=%s', ), terminal_output=dict(mandatory=True, nohash=True, ), environ=dict(nohash=True, usedefault=True, ), in_file=dict(mandatory=True, argstr='-i %s', ), ref_vol=dict(mandatory=True, argstr='-r %s', ), output_type=dict(), ref_mask=dict(argstr='--refmask=%s', ), interpolation=dict(argstr='--interp=%s', ), ) inputs = VecReg.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_VecReg_inputs(): input_map = dict(affine_mat=dict(argstr='-t %s', ), args=dict(argstr='%s', ), environ=dict(nohash=True, usedefault=True, ), ignore_exception=dict(nohash=True, usedefault=True, ), in_file=dict(argstr='-i %s', mandatory=True, ), interpolation=dict(argstr='--interp=%s', ), mask=dict(argstr='-m %s', ), out_file=dict(argstr='-o %s', genfile=True, hash_files=False, ), output_type=dict(), ref_mask=dict(argstr='--refmask=%s', ), ref_vol=dict(argstr='-r %s', mandatory=True, ), rotation_mat=dict(argstr='--rotmat=%s', ), rotation_warp=dict(argstr='--rotwarp=%s', ), terminal_output=dict(mandatory=True, nohash=True, ), warp_field=dict(argstr='-w %s', ), ) inputs = VecReg.input_spec() for key, metadata in input_map.items(): for metakey, value in metadata.items(): yield assert_equal, getattr(inputs.traits()[key], metakey), value