Skip to content

Commit bf0c39a

Browse files
committed
Direction of displacement field should not be changed when changing target image in transformix
1 parent e4f297d commit bf0c39a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nipype/interfaces/elastix/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# @Author: oesteban - code@oscaresteban.es
77
# @Date: 2014-06-17 10:17:07
88
# @Last Modified by: oesteban
9-
# @Last Modified time: 2014-06-17 13:15:54
9+
# @Last Modified time: 2014-06-27 10:25:36
1010
"""
1111
Generic interfaces to manipulate registration parameters files, including
1212
transform files (to configure warpings)
@@ -121,9 +121,9 @@ def _run_interface(self, runtime):
121121
dirs = ' '.join(['%0.4f' % f for f in affine[0:3,0:3].reshape(-1)])
122122
orig = ' '.join(['%0.4f' % f for f in affine[0:3,3].reshape(-1)])
123123

124-
p = re.compile((self._pattern % 'Direction').decode('string-escape'))
125-
rep = '(\g<entry>%s\g<3>' % dirs
126-
contents = p.sub(rep, contents)
124+
#p = re.compile((self._pattern % 'Direction').decode('string-escape'))
125+
#rep = '(\g<entry>%s\g<3>' % dirs
126+
#contents = p.sub(rep, contents)
127127

128128
p = re.compile((self._pattern % 'Origin').decode('string-escape'))
129129
rep = '(\g<entry>%s\g<3>' % orig

0 commit comments

Comments
 (0)