Skip to content

Commit 4220ca3

Browse files
committed
STYLE: Remove dead code
This is an attempt to retain backwards compatiblity, on the command line, but this feature was never properly implemented in ants, and has become an invalid command line options as of ANTS commit: bf6aa93e21457c727b0793877d1af3fb5988cebd Date: Sat Oct 25 14:15:00 2014 -0500
1 parent b1013d9 commit 4220ca3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

nipype/interfaces/ants/registration.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -581,13 +581,6 @@ def _formatWinsorizeImageIntensities(self):
581581
self._quantilesDone = True
582582
return '--winsorize-image-intensities [ %s, %s ]' % (self.inputs.winsorize_lower_quantile, self.inputs.winsorize_upper_quantile)
583583

584-
def _formatCollapseLinearTransformsToFixedImageHeader(self):
585-
if self.inputs.collapse_linear_transforms_to_fixed_image_header:
586-
# return '--collapse-linear-transforms-to-fixed-image-header 1'
587-
return ''
588-
else:
589-
# return '--collapse-linear-transforms-to-fixed-image-header 0'
590-
return ''
591584

592585
def _format_arg(self, opt, spec, val):
593586
if opt == 'fixed_image_mask':
@@ -636,7 +629,7 @@ def _format_arg(self, opt, spec, val):
636629
return self._formatWinsorizeImageIntensities()
637630
return '' # Must return something for argstr!
638631
elif opt == 'collapse_linear_transforms_to_fixed_image_header':
639-
return self._formatCollapseLinearTransformsToFixedImageHeader()
632+
return '' # Command no longer exist, so return empty string for backwards compatibility
640633
return super(Registration, self)._format_arg(opt, spec, val)
641634

642635
def _outputFileNames(self, prefix, count, transform, inverse=False):

0 commit comments

Comments
 (0)