diff --git a/fsl/data/featimage.py b/fsl/data/featimage.py index b18193e5b9c630a122fe9fe77a05c98f9815b10b..59cc9ce8929c1171d019dee99498d32fe8531138 100644 --- a/fsl/data/featimage.py +++ b/fsl/data/featimage.py @@ -286,8 +286,8 @@ class FEATImage(fslimage.Image): """ if not fullmodel: - contrast = np.array(contrast) - contrast /= np.sqrt((contrast ** 2).sum()) + contrast = np.array(contrast) + contrast = contrast / np.sqrt((contrast ** 2).sum()) x, y, z = xyz numEVs = self.numEVs() diff --git a/fsl/fsleyes/controls/clusterpanel.py b/fsl/fsleyes/controls/clusterpanel.py index 79cb70bbcbacd563fe8151103ace98fb3740a5f9..717407cf48f56154a95960d078c39014d73b2970 100644 --- a/fsl/fsleyes/controls/clusterpanel.py +++ b/fsl/fsleyes/controls/clusterpanel.py @@ -497,6 +497,7 @@ class ClusterPanel(fslpanel.FSLEyesPanel): # Overlay is in-memory if overlay.dataSource is None: + self.__disable(strings.messages[self, 'notFEAT']) return featDir = featresults.getAnalysisDir(overlay.dataSource)