From 9ed43cc8bca8145aba939b9cc539b693e943f62e Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Wed, 10 Jul 2024 13:14:11 +0100
Subject: [PATCH] BF: Missed one attribute on Cluster objects

---
 fsl/data/featanalysis.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fsl/data/featanalysis.py b/fsl/data/featanalysis.py
index 93dba289..94c77689 100644
--- a/fsl/data/featanalysis.py
+++ b/fsl/data/featanalysis.py
@@ -430,6 +430,7 @@ def loadClusterResults(featdir, settings, contrast, ftest=False):
 
             # F-test cluster results will not have
             # COPE-* results
+            if not hasattr(self, 'copemax'):  self.copemax  = np.nan
             if not hasattr(self, 'copemaxx'): self.copemaxx = np.nan
             if not hasattr(self, 'copemaxy'): self.copemaxy = np.nan
             if not hasattr(self, 'copemaxz'): self.copemaxz = np.nan
-- 
GitLab