From 21f0776eb04ea429d7b468cf10c21421cf427468 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauld.mccarthy@gmail.com> Date: Tue, 22 Mar 2016 14:48:07 +0000 Subject: [PATCH] Bugfix - FSLeyes was under the assumption that all images starting with 'melodic_IC' were melodic_IC images, which they're not (e.g. 'melodic_IC_sum') --- fsl/data/melodicresults.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fsl/data/melodicresults.py b/fsl/data/melodicresults.py index 4c46c57f5..cd819a079 100644 --- a/fsl/data/melodicresults.py +++ b/fsl/data/melodicresults.py @@ -56,7 +56,8 @@ def isMelodicImage(path): dirname = op.dirname( path) filename = op.basename(path) - return filename.startswith('melodic_IC') and isMelodicDir(dirname) + return fslimage.removeExt(filename) == 'melodic_IC' and \ + isMelodicDir(dirname) def isMelodicDir(path): -- GitLab