diff --git a/niworkflows/interfaces/reportlets/registration.py b/niworkflows/interfaces/reportlets/registration.py index 8ec9d737..65b1b0bc 100644 --- a/niworkflows/interfaces/reportlets/registration.py +++ b/niworkflows/interfaces/reportlets/registration.py @@ -351,6 +351,9 @@ class _SimpleBeforeAfterInputSpecRPT(nrb._SVGReportCapableInputSpec): wm_seg = File(desc="reference white matter segmentation mask") before_label = traits.Str("before", usedefault=True) after_label = traits.Str("after", usedefault=True) + dismiss_affine = traits.Bool( + False, usedefault=True, desc="rotate image(s) to cardinal axes" + ) class SimpleBeforeAfterRPT(nrb.RegistrationRC, nrb.ReportingInterface): @@ -363,6 +366,7 @@ def _post_run_hook(self, runtime): self._fixed_image = self.inputs.after self._moving_image = self.inputs.before self._contour = self.inputs.wm_seg if isdefined(self.inputs.wm_seg) else None + self._dismiss_affine = self.inputs.dismiss_affine NIWORKFLOWS_LOG.info( "Report - setting before (%s) and after (%s) images", self._fixed_image,