Skip to content
Snippets Groups Projects
Commit 65185370 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

ClusterPanel was not disabling itself for in-memory images. Bugfix to

FeatImage.fit (caused I think by a numpy bug).
parent 000e41fd
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment