@@ -31,19 +31,19 @@ class MetricResampleInputSpec(CommandLineInputSpec):
31
31
mandatory = True ,
32
32
argstr = "%s" ,
33
33
position = 2 ,
34
- desc = ( "A sphere surface that is in register with <current-sphere> and"
35
- " has the desired output mesh" ) )
34
+ desc = "A sphere surface that is in register with <current-sphere> and"
35
+ " has the desired output mesh" )
36
36
method = traits .Enum (
37
37
"ADAP_BARY_AREA" ,
38
38
"BARYCENTRIC" ,
39
39
argstr = "%s" ,
40
40
mandatory = True ,
41
41
position = 3 ,
42
- desc = ( "The method name - ADAP_BARY_AREA method is recommended for"
43
- " ordinary metric data, because it should use all data while"
44
- " downsampling, unlike BARYCENTRIC. If ADAP_BARY_AREA is used,"
45
- " exactly one of area_surfs or area_metrics must be specified" ) )
46
- metric_out = File (
42
+ desc = "The method name - ADAP_BARY_AREA method is recommended for"
43
+ " ordinary metric data, because it should use all data while"
44
+ " downsampling, unlike BARYCENTRIC. If ADAP_BARY_AREA is used,"
45
+ " exactly one of area_surfs or area_metrics must be specified" )
46
+ out_file = File (
47
47
name_source = ["new_sphere" ],
48
48
name_template = "%s.out" ,
49
49
keep_extension = True ,
@@ -64,14 +64,14 @@ class MetricResampleInputSpec(CommandLineInputSpec):
64
64
exists = True ,
65
65
position = 6 ,
66
66
argstr = "%s" ,
67
- desc = ( "A relevant anatomical surface with <current-sphere> mesh OR"
68
- " a metric file with vertex areas for <current-sphere> mesh" ) )
67
+ desc = "A relevant anatomical surface with <current-sphere> mesh OR"
68
+ " a metric file with vertex areas for <current-sphere> mesh" )
69
69
new_area = File (
70
70
exists = True ,
71
71
position = 7 ,
72
72
argstr = "%s" ,
73
- desc = ( "A relevant anatomical surface with <current-sphere> mesh OR"
74
- " a metric file with vertex areas for <current-sphere> mesh" ) )
73
+ desc = "A relevant anatomical surface with <current-sphere> mesh OR"
74
+ " a metric file with vertex areas for <current-sphere> mesh" )
75
75
roi_metric = File (
76
76
exists = True ,
77
77
position = 8 ,
@@ -118,9 +118,9 @@ class MetricResample(WBCommand):
118
118
_cmd = 'wb_command -metric-resample'
119
119
120
120
def _format_arg (self , opt , spec , val ):
121
- if opt == "metric_out " :
121
+ if opt == "out_file " :
122
122
# ensure generated filename is assigned to trait
123
- self .inputs .trait_set (metric_out = val )
123
+ self .inputs .trait_set (out_file = val )
124
124
if opt in ['current_area' , 'new_area' ]:
125
125
if not self .inputs .area_surfs and not self .inputs .area_metrics :
126
126
raise ValueError ("{} was set but neither area_surfs or"
@@ -140,7 +140,7 @@ def _format_arg(self, opt, spec, val):
140
140
141
141
def _list_outputs (self ):
142
142
outputs = self ._outputs ().get ()
143
- outputs ['out_file' ] = os .path .abspath (self .inputs .metric_out )
143
+ outputs ['out_file' ] = os .path .abspath (self .inputs .out_file )
144
144
if self .inputs .valid_roi_out :
145
145
roi_file = self ._gen_filename (self .inputs .in_file , suffix = '_roi' )
146
146
outputs ['roi_file' ] = os .path .abspath (roi )
0 commit comments