From 33640abfc52f0b5e14fc87362add9c8ebee26672 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Tue, 5 Nov 2019 06:48:11 +0000 Subject: [PATCH] BF: isBIDSFile should return boolean --- fsl/utils/bids.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsl/utils/bids.py b/fsl/utils/bids.py index 17f428f5c..40bab3a04 100644 --- a/fsl/utils/bids.py +++ b/fsl/utils/bids.py @@ -150,7 +150,7 @@ def isBIDSFile(filename, strict=True): name = op.basename(filename) pattern = r'([a-z0-9]+-[a-z0-9]+_)*([a-z0-9])+\.(nii|nii\.gz|json)' flags = re.ASCII | re.IGNORECASE - match = re.fullmatch(pattern, name, flags) + match = re.fullmatch(pattern, name, flags) is not None return ((not strict) or inBIDSDir(filename)) and match -- GitLab