Skip to content

Commit

Permalink
Merge pull request #209 from oesteban/enh/logging-msg
Browse files Browse the repository at this point in the history
[ENH] Lower priority of "Affines do not match" warning
  • Loading branch information
oesteban authored Nov 25, 2017
2 parents b42df56 + 10fc9f1 commit 77b79d0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions niworkflows/interfaces/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,11 @@ def _copyxform(ref_image, out_image, message=None):
orig = nb.load(ref_image)

if not np.allclose(orig.affine, resampled.affine):
LOG.warning('Affines of input and reference images '
'do not match, CopyXForm will probably '
'make the input image useless.')
LOG.debug(
'Affines of input and reference images do not match, '
'FMRIPREP will set the reference image headers. '
'Please, check that the x-form matrices of the input dataset'
'are correct and manually verify the alignment of results.')

# Copy xform infos
qform, qform_code = orig.header.get_qform(coded=True)
Expand Down

0 comments on commit 77b79d0

Please sign in to comment.