From d85ebb1d33eda25736e89e212948ddc492abec95 Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <MichielCottaar@gmail.com> Date: Sun, 9 Dec 2018 13:05:34 +0000 Subject: [PATCH] BUG: prevent all_variables from being mutated --- fsl/utils/filetree/filetree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsl/utils/filetree/filetree.py b/fsl/utils/filetree/filetree.py index 10afe1e2a..15bd8bb88 100644 --- a/fsl/utils/filetree/filetree.py +++ b/fsl/utils/filetree/filetree.py @@ -49,7 +49,7 @@ class FileTree(object): All tree variables including those from the parent tree """ if self.parent is None: - return self.variables + return dict(self.variables) res = self.parent.all_variables res.update(self.variables) return res -- GitLab