@@ -524,6 +524,13 @@ def _format_arg(self, opt, spec, val):
524
524
return scans_for_fname (val )
525
525
elif opt in ["tpm" , "shooting_tpm" ]:
526
526
return Cell2Str (val )
527
+
528
+ if opt == "surface_measures" :
529
+ if not self .inputs .surface_measures :
530
+ self .inputs .neuromorphometrics = False
531
+ self .inputs .lpba40 = False
532
+ self .inputs .cobra = False
533
+ self .inputs .hammers = False
527
534
528
535
return super ()._format_arg (opt , spec , val )
529
536
@@ -582,12 +589,14 @@ def _list_outputs(self):
582
589
str (label ) for label in Path (pth ).glob ("label/*" ) if label .is_file ()
583
590
]
584
591
585
- outputs ["label_rois" ] = fname_presuffix (
586
- f , prefix = os .path .join ("label" , "catROIs_" ), suffix = ".xml" , use_ext = False
587
- )
588
- outputs ["label_roi" ] = fname_presuffix (
589
- f , prefix = os .path .join ("label" , "catROI_" ), suffix = ".xml" , use_ext = False
590
- )
592
+ if self .inputs .surface_measures :
593
+ outputs ["label_rois" ] = fname_presuffix (
594
+ f , prefix = os .path .join ("label" , "catROIs_" ), suffix = ".xml" , use_ext = False
595
+ )
596
+ else :
597
+ outputs ["label_roi" ] = fname_presuffix (
598
+ f , prefix = os .path .join ("label" , "catROI_" ), suffix = ".xml" , use_ext = False
599
+ )
591
600
592
601
return outputs
593
602
0 commit comments