From 4be79280f923955fbf8d332244f9721eed0546e7 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Mon, 15 Apr 2019 20:06:06 +0100 Subject: [PATCH] RF: Don't notify if intent not changed --- fsl/data/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsl/data/image.py b/fsl/data/image.py index f2a737474..96d918e5c 100644 --- a/fsl/data/image.py +++ b/fsl/data/image.py @@ -469,7 +469,7 @@ class Nifti(notifier.Notifier, meta.Meta): def intent(self, val): """Sets the NIFTI intent code of this image. """ # analyze has no intent - if self.niftiVersion > 0: + if (self.niftiVersion > 0) and (val != self.intent): self.header.set_intent(val, allow_unknown=True) self.notify(topic='header') -- GitLab