Skip to content
Snippets Groups Projects
Commit 4be79280 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

RF: Don't notify if intent not changed

parent c9140729
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment