We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8256530 commit d2403faCopy full SHA for d2403fa
niworkflows/interfaces/images.py
@@ -609,7 +609,7 @@ def _run_interface(self, runtime):
609
# Set qform
610
qform = refhdr.get_qform()
611
qcode = int(refhdr["qform_code"])
612
- if not np.allclose(qform, imghdr.get_qform()):
+ if not np.allclose(qform, imghdr.get_qform(), atol=1e-2): # tolerance of 0.01 mm
613
LOGGER.warning("q-forms of reference and mask are substantially different")
614
imghdr.set_qform(qform, qcode)
615
0 commit comments