From 56c71d6dedbdd2be251f289f5445f0c1fa7424c9 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Tue, 10 Oct 2017 17:22:18 +0100 Subject: [PATCH] Normalise atlas image/summary image paths --- fsl/data/atlases.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fsl/data/atlases.py b/fsl/data/atlases.py index 7df89ac20..51f2adcb2 100644 --- a/fsl/data/atlases.py +++ b/fsl/data/atlases.py @@ -492,8 +492,8 @@ class AtlasDescription(object): # Assuming that the path # names begin with a slash - imagefile = op.join(atlasDir, '.' + imagefile) - summaryimagefile = op.join(atlasDir, '.' + summaryimagefile) + imagefile = op.normpath(atlasDir + imagefile) + summaryimagefile = op.normpath(atlasDir + summaryimagefile) i = fslimage.Image(imagefile, loadData=False, calcRange=False) -- GitLab