def test_PETStandardUptakeValueComputation_inputs(): input_map = dict( OutputLabel=dict(argstr='--OutputLabel %s', ), OutputLabelValue=dict(argstr='--OutputLabelValue %s', ), SUVMax=dict(argstr='--SUVMax %s', ), SUVMean=dict(argstr='--SUVMean %s', ), SUVMin=dict(argstr='--SUVMin %s', ), args=dict(argstr='%s', ), color=dict(argstr='--color %s', ), csvFile=dict( argstr='--csvFile %s', hash_files=False, ), environ=dict( nohash=True, usedefault=True, ), ignore_exception=dict( nohash=True, usedefault=True, ), labelMap=dict(argstr='--labelMap %s', ), petDICOMPath=dict(argstr='--petDICOMPath %s', ), petVolume=dict(argstr='--petVolume %s', ), terminal_output=dict(nohash=True, ), ) inputs = PETStandardUptakeValueComputation.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_PETStandardUptakeValueComputation_outputs(): output_map = dict(csvFile=dict(), ) outputs = PETStandardUptakeValueComputation.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_PETStandardUptakeValueComputation_inputs(): input_map = dict(petVolume=dict(argstr='--petVolume %s', ), ignore_exception=dict(nohash=True, usedefault=True, ), color=dict(argstr='--color %s', ), args=dict(argstr='%s', ), OutputLabel=dict(argstr='--OutputLabel %s', ), csvFile=dict(hash_files=False, argstr='--csvFile %s', ), OutputLabelValue=dict(argstr='--OutputLabelValue %s', ), labelMap=dict(argstr='--labelMap %s', ), petDICOMPath=dict(argstr='--petDICOMPath %s', ), terminal_output=dict(mandatory=True, nohash=True, ), environ=dict(nohash=True, usedefault=True, ), SUVMax=dict(argstr='--SUVMax %s', ), SUVMin=dict(argstr='--SUVMin %s', ), SUVMean=dict(argstr='--SUVMean %s', ), ) inputs = PETStandardUptakeValueComputation.input_spec() for key, metadata in input_map.items(): for metakey, value in metadata.items(): yield assert_equal, getattr(inputs.traits()[key], metakey), value