Skip to content

Commit 86706b9

Browse files
committed
Merge remote-tracking branch 'upstream/master' into fix/prov
* upstream/master: Change in normalize_mc_params fix/enh: added the colorfa as an output in DTI
2 parents 6b6d816 + fa0a101 commit 86706b9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

nipype/interfaces/dipy/tensors.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class DTIOutputSpec(TraitedSpec):
2121
md_file = File(exists=True)
2222
rd_file = File(exists=True)
2323
ad_file = File(exists=True)
24+
color_fa_file = File(exists=True)
2425

2526

2627
class DTI(DipyDiffusionInterface):
@@ -62,7 +63,7 @@ def _run_interface(self, runtime):
6263
IFLOGGER.info('DTI parameters image saved as %s', out_file)
6364

6465
# FA MD RD and AD
65-
for metric in ["fa", "md", "rd", "ad"]:
66+
for metric in ["fa", "md", "rd", "ad", "color_fa"]:
6667
data = getattr(ten_fit, metric).astype("float32")
6768
out_name = self._gen_filename(metric)
6869
nb.Nifti1Image(data, affine).to_filename(out_name)
@@ -74,7 +75,7 @@ def _list_outputs(self):
7475
outputs = self._outputs().get()
7576
outputs['out_file'] = self._gen_filename('dti')
7677

77-
for metric in ["fa", "md", "rd", "ad"]:
78+
for metric in ["fa", "md", "rd", "ad", "color_fa"]:
7879
outputs["{}_file".format(metric)] = self._gen_filename(metric)
7980

8081
return outputs

nipype/utils/misc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ def normalize_mc_params(params, source):
233233
y Anterior-Posterior (mm)
234234
z Superior-Inferior (mm)
235235
rx Pitch (rad)
236-
ry Yaw (rad)
237-
rz Roll (rad)
236+
ry Roll (rad)
237+
rz Yaw (rad)
238238
"""
239239
if source.upper() == 'FSL':
240240
params = params[[3, 4, 5, 0, 1, 2]]

0 commit comments

Comments
 (0)