Skip to content

Commit

Permalink
BF: rmed buggy call to BaseDecomposition.fit(self, None)
Browse files Browse the repository at this point in the history
  • Loading branch information
dohmatob committed Jan 16, 2017
1 parent 2a21f4f commit 19e7e1f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modl/fmri.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,7 @@ def fit(self, imgs=None, y=None, confounds=None, raw=False):
if isinstance(imgs, str) or not hasattr(imgs, '__iter__'):
imgs = [imgs]
# Base logic for decomposition estimators
if raw:
BaseDecomposition.fit(self, None)
else:
BaseDecomposition.fit(self, imgs)
BaseDecomposition.fit(self, imgs)
shelving = self.memory is not None and self.memory.cachedir is not None
self.masker_._shelving = shelving
# Avoid cache trashing due to nibabel bad design
Expand Down

0 comments on commit 19e7e1f

Please sign in to comment.