From b62a350113abc6820a26eaca8a1f8784fa5e13c5 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauld.mccarthy@gmail.com>
Date: Mon, 9 May 2016 10:35:13 +0100
Subject: [PATCH] Atlas IDs are now lower case.

---
 fsl/data/atlases.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/fsl/data/atlases.py b/fsl/data/atlases.py
index 5982473ed..9fe33df9e 100644
--- a/fsl/data/atlases.py
+++ b/fsl/data/atlases.py
@@ -52,13 +52,14 @@ have a structure that looks like the following:
 This module reads in all of these XML files, and builds a list of
 :class:`AtlasDescription` instances, each of which contains information about
 one atlas. Each atlas is assigned an identifier, which is simply the XML file
-name describing the atlas, sans-suffix.  For exmaple, the atlas described by:
+name describing the atlas, sans-suffix, and converted to lower case.  For
+exmaple, the atlas described by:
 
     ``$FSLDIR/data/atlases/HarvardOxford-Cortical.xml``
 
 is given the identifier
 
-    ``HarvardOxford-Cortical``
+    ``harvardoxford-cortical``
 
 
 The following functions provide access to the available
@@ -232,7 +233,7 @@ class AtlasDescription(object):
         header = root.find('header')
         data   = root.find('data')
 
-        self.atlasID   = op.splitext(op.basename(filename))[0]
+        self.atlasID   = op.splitext(op.basename(filename))[0].lower()
         self.name      = header.find('name').text
         self.atlasType = header.find('type').text.lower()
  
-- 
GitLab