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