def test_VtkStreamlines_outputs(): output_map = dict(vtk=dict(), ) outputs = VtkStreamlines.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_VtkStreamlines_outputs(): output_map = dict(vtk=dict()) outputs = VtkStreamlines.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_VtkStreamlines_inputs(): input_map = dict( args=dict(argstr='%s', ), colourorient=dict(argstr='-colourorient', ), environ=dict( nohash=True, usedefault=True, ), ignore_exception=dict( nohash=True, usedefault=True, ), in_file=dict( argstr=' < %s', mandatory=True, position=-2, ), inputmodel=dict( argstr='-inputmodel %s', usedefault=True, ), interpolate=dict(argstr='-interpolate', ), interpolatescalars=dict(argstr='-interpolatescalars', ), out_file=dict( argstr='> %s', genfile=True, position=-1, ), scalar_file=dict( argstr='-scalarfile %s', position=3, ), seed_file=dict( argstr='-seedfile %s', position=1, ), target_file=dict( argstr='-targetfile %s', position=2, ), terminal_output=dict( mandatory=True, nohash=True, ), voxeldims=dict( argstr='-voxeldims %s', position=4, units='mm', ), ) inputs = VtkStreamlines.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_VtkStreamlines_inputs(): input_map = dict(ignore_exception=dict(nohash=True, usedefault=True, ), voxeldims=dict(argstr='-voxeldims %s', units='mm', position=4, ), colourorient=dict(argstr='-colourorient', ), out_file=dict(position=-1, genfile=True, argstr='> %s', ), target_file=dict(position=2, argstr='-targetfile %s', ), args=dict(argstr='%s', ), interpolate=dict(argstr='-interpolate', ), inputmodel=dict(usedefault=True, argstr='-inputmodel %s', ), interpolatescalars=dict(argstr='-interpolatescalars', ), terminal_output=dict(mandatory=True, nohash=True, ), seed_file=dict(position=1, argstr='-seedfile %s', ), scalar_file=dict(position=3, argstr='-scalarfile %s', ), environ=dict(nohash=True, usedefault=True, ), in_file=dict(position=-2, mandatory=True, argstr=' < %s', ), ) inputs = VtkStreamlines.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_VtkStreamlines_inputs(): input_map = dict( args=dict(argstr="%s"), colourorient=dict(argstr="-colourorient"), environ=dict(nohash=True, usedefault=True), ignore_exception=dict(nohash=True, usedefault=True), in_file=dict(argstr=" < %s", mandatory=True, position=-2), inputmodel=dict(argstr="-inputmodel %s", usedefault=True), interpolate=dict(argstr="-interpolate"), interpolatescalars=dict(argstr="-interpolatescalars"), out_file=dict(argstr="> %s", genfile=True, position=-1), scalar_file=dict(argstr="-scalarfile %s", position=3), seed_file=dict(argstr="-seedfile %s", position=1), target_file=dict(argstr="-targetfile %s", position=2), terminal_output=dict(nohash=True), voxeldims=dict(argstr="-voxeldims %s", position=4, units="mm"), ) inputs = VtkStreamlines.input_spec() for key, metadata in input_map.items(): for metakey, value in metadata.items(): yield assert_equal, getattr(inputs.traits()[key], metakey), value