Skip to content

Commit 399f38b

Browse files
authored
Merge pull request #1573 from TheChymera/importfix
updated GLM imports
2 parents eb8a930 + 85aab7a commit 399f38b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/interfaces/nipy/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
have_nipy = False
1616
else:
1717
import nipy.modalities.fmri.design_matrix as dm
18-
import nipy.labs.glm.glm as GLM
18+
import nipy.modalities.fmri.glm as GLM
1919

2020
if have_nipy:
2121
try:
@@ -158,7 +158,7 @@ def _run_interface(self, runtime):
158158
pylab.close()
159159
pylab.clf()
160160

161-
glm = GLM.glm()
161+
glm = GLM.GeneralLinearModel()
162162
glm.fit(timeseries.T, design_matrix, method=self.inputs.method, model=self.inputs.model)
163163

164164
self._beta_file = os.path.abspath("beta.nii")
@@ -266,7 +266,7 @@ def _run_interface(self, runtime):
266266
else:
267267
mask = np.ones(beta_nii.shape[:3]) == 1
268268

269-
glm = GLM.glm()
269+
glm = GLM.GeneralLinearModel()
270270
nii = nb.load(self.inputs.beta)
271271
glm.beta = beta_nii.get_data().copy()[mask, :].T
272272
glm.nvbeta = self.inputs.nvbeta

0 commit comments

Comments
 (0)