Skip to content

Commit

Permalink
Fix LHS bug in lmer.
Browse files Browse the repository at this point in the history
  • Loading branch information
andportnoy authored and Andrey Portnoy committed Nov 16, 2018
1 parent 8b95435 commit 1dbd90e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fitgrid/epochs.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ def lm(self, LHS=None, RHS=None, parallel=False, n_cores=4):

_lm = partial(self._lm, RHS=RHS)

return self.run_model(_lm, LHS, parallel=parallel, n_cores=n_cores)
return self.run_model(
_lm, channels=LHS, parallel=parallel, n_cores=n_cores
)

def _lmer(self, data, channel, RHS):
from pymer4 import Lmer
Expand Down Expand Up @@ -316,7 +318,9 @@ def lmer(self, LHS=None, RHS=None, parallel=False, n_cores=4):

self._validate_LHS(LHS)
lmer_runner = partial(self._lmer, RHS=RHS)
return self.run_model(lmer_runner, parallel=parallel, n_cores=n_cores)
return self.run_model(
lmer_runner, channels=LHS, parallel=parallel, n_cores=n_cores
)

def plot_averages(self, channels=None, negative_up=True):
"""Plot grand mean averages for each channel, negative up by default.
Expand Down

0 comments on commit 1dbd90e

Please sign in to comment.