From d423d2e9d506b1004fb0b46e3d3d0ab79a981275 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Sun, 21 Jan 2018 16:02:09 +0000
Subject: [PATCH] Add back .gii as a valid gifti surface extension, because wx
 doesn't support double-barrelled file extensions.

---
 fsl/data/gifti.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/fsl/data/gifti.py b/fsl/data/gifti.py
index 0e2807630..9bba0368b 100644
--- a/fsl/data/gifti.py
+++ b/fsl/data/gifti.py
@@ -35,14 +35,16 @@ import fsl.data.constants as constants
 import fsl.data.mesh      as fslmesh
 
 
-
-ALLOWED_EXTENSIONS = ['.surf.gii']
+# We include .gii here because lots of things
+# don't understand double-barrelled file
+# extensions (e.g. the wxPython open file dialog).
+ALLOWED_EXTENSIONS = ['.surf.gii', '.gii']
 """List of file extensions that a file containing Gifti surface data
 is expected to have.
 """
 
 
-EXTENSION_DESCRIPTIONS = ['GIFTI surface file']
+EXTENSION_DESCRIPTIONS = ['GIFTI surface file', 'GIFTI surface file']
 """A description for each of the :data:`ALLOWED_EXTENSIONS`. """
 
 
-- 
GitLab